textmate

In textmate, how do I reverse indent a block of selected code?

I have a block of code selected, I want to un-indent this selected code. On a pc, I would do a shift-tab and it would un-indent. ...

Open local text application to edit remote text file using ssh?

So i am in a VPS terminal using ssh. In normal case I could just run locally mate <file> and it fires up TextMate with that file. Is it possible to use the same command and somehow open the local TextMate application but editing the remote file? That would be good if you are working in VPS and don't want to use vim all the time. ...

How to know if I run python from Textmate/emacs?

I use TextMate to debug python script, as I like the feature of using 'Command-R' for running python from TextMate, and I learned that emacs provide similar feature. I need to know if the python is run from command line or from TextMate/emacs. How can I do that? ADDED I use TextMate for python coding/debugging, and it's pretty usefu...

[textmate] Anyway to keep/stick a "file tab" at the front

I have a few files that i am working on in any given moment that i would love to have at the front of my tabs at any given moment. How can I do so? ...

Regex: How can I remove whitespace within a style attribute only?

Hi, for the last hour I have been trying to figure this out myself but I am just not having any success and thought maybe you could help. Basically I am having a html email document that has a lot style attributes for inline styling of elements that look somewhat like <th rowspan="10" style="font-weight: normal; vertical-align: top; te...

How to point Textmate to correct version of RSpec?

I have just installed the RSpec 2.0 beta and I would like to use it with Textmate. I have tried setting my TM_RSPEC_HOME to /Users/zach/.rvm/gems/ruby-1.9.2-p0/bin/rspec (which is where the RSpec executable is), but I keep getting this error: Can somebody please help me get RSpec correctly working with Textmate? Thanks. ...

How to use multi-line and look-ahead together in Textmate find function with regular expressions?

I've got a XML file and I need to locate all parameters with parameterid named aspect (or name field with Aspect as the value), find the end of the parameter, insert than another similar parameter called linewidth (see below for the aspect parameter <parameter> <parameterid>aspect</parameterid> <name>Aspect</name> <valuemin>0...

How to perform multiple find and replace in TextMate besides macro?

I have several regular expressions to find and replace text in documents in TextMate. I would like to be able to have them run in a batch. I made a macro and it worked, but any tiny modifications to the macro means re-recording the macro. And I can't seem to modify the regex within the TextMate interface. It's read-only for some reason. ...

How do I get Xcode-like tab-completion in TextMate?

Xcode shows you a grayed-out version of what it will complete to and if you hit tab or right-arrow, it will complete. It's pretty sweet. Is this possible in TextMate? Thanks! Matt ...

Emacs/TextMate code completion for Erlang?

ESense looks dead; what are your recommendations for Erlang code completion in Emacs? It doesn't have to be fancy (ESense built an index from the Erlang source); even something that just uses Erlang's module_info/0 and module_info/1 functions for introspection of function names would help. If one isn't available in Emacs, can you recomm...

Inserting an <div>xx</div> using a keyboard shortcut in textmate

One of my most common operations in textmate is to encapsulate a block of text in a <div>. How can i create a keyboard shortcut for this? I do not really feel like learning anything complex, so simple solutions would work best - thanks! ...

Textmate autocompletion and class outline for PHP project

I'm using PDT, but want to switch to any lightweit editor. First I want to try Textmate. Eclipse has several useful features: class outlile to get list of properties and methods (with signature) to navigate; type hierarchy, it is like class outlile but it shows full inheritance tree; autocompletion for custom classes names, methods etc...

navigation on a textmate page, front of line, end of line, up page etc.

in textmate, when editing a .rb page (or any page), how do jump to the start/end of a line? and what about to the top/bottom of the page? ...

how to move the textmate file explorer to the right side?

how to move the textmate file explorer to the right side? ...

Wiki Using GVim?

I've been using TextMate on the Mac for a while, and have really appreciated the Plain Text Wiki bundle that lets me construct a wiki from plain text files and simple markup. Does anyone know if there's a similar extension for GVim? (Either that, or has anyone ported TextMate to Linux?) ...

textmate >> vim for python - teething troubles: especially indenting

I'm (attempting) to move from textmate to vim [macvim to be exact] as my primary editor. I have already installed snipmate - wondering if there are other plugins you would suggest I install? In particular I seem to be having a lot of trouble with indenting (<< seems to really do some very strange/unpredictable things), and I can't seem ...

TextMate - Find & Replace Selected Text

In TextMate, does anyone know how you find & replace selected text? ...

Color a string in Textmate?

Hi, is it possible to display a certain string in Textmate in a custom color? Lets say I want to display the string "myCoolFunction()" always in yellow so I can see better where I use the function in my documents. ...

What's the selector to color word values in CSS files in TextMate?

My present TextMate theme (Ruby Blue) is nice, except there's one annoying attribute that I haven't been able to fix. When editing CSS, it doesn't apply any color to "word values" for properties. See screenshot below -- for width: 90%, the 90% is highlighted. However, for display: block, 'block' gets no highlighting. What's the Tex...

select a line to move it with emacs.

I like the TextMate that can select a line to move it with a simple keystroke. Command-shift L (select a line) Control-Command Arrow(up and down) (move the selected line) How can I do the same thing with emacs? ...