[TxMt] highlight all instances under cursor

Hans-Jörg Bibiko bibiko at eva.mpg.de
Fri Feb 1 18:49:31 UTC 2008


On 01.02.2008, at 18:59, Daniel Stockman wrote:

> 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.

I agree with Daniel.


But as a short note: By using TMTOOLS (an 'unofficial' hacker tool ;)  
one could do this.
see my mail: http://comox.textdrive.com/pipermail/textmate/2007- 
October/022827.html

Cheers,

Hans




More information about the textmate mailing list