[TxMt] highlight all instances under cursor
Daniel Stockman
daniel.stockman at gmail.com
Fri Feb 1 17:59:09 UTC 2008
On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote:
> I'd like to be able to put my cursor on a word (in a JS file let's
> say) and have that word highlighted _everywhere_ else in the
> document making it very easy to find / see where it is. [...] Is
> this possible?
I dislike the idea of making the mouse cursor integral to a function
of a text editor, so here's how you could approximate the behaviour
via the keyboard (with menu path parenthesized):
1. With the caret inside or bordering the target word, press Control +
W (Edit > Select > Word). Alternately, double-click the word itself.
2. Command + E (Edit > Find > Use Selection for Find)
3. Command + G (Edit > Find > Find Next)
Your selection will now jump to each instance of the desired word on
each subsequent Command + G. It's not as whizbang as Aptana, but I
often feel IDEs do a lot more than necessary for certain tasks.
Hope this helps, and welcome back to the fold. ;)
~ Daniel
More information about the textmate
mailing list