Howdy, I've been a Textmate user for years now but moved to Aptana for a while but now I'm back! :) Simply love Textmate. A feature I used constantly in Aptana however, I cannot seem to find or figure out a similar solution to in Textmate. 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. Aptana also put a little yellow marker in one of it's gutters to show where the instances are vertically in the file too. Makes it _very_ quick to find things. Is this possible?
Thank you very much!
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
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):
- With the caret inside or bordering the target word, press
Control + W (Edit > Select > Word). Alternately, double-click the word itself.
Command + E (Edit > Find > Use Selection for Find)
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