Would you use an option to find previous/next text string using a simple shortcut? The string to look for is current word under the cursor.
For example you have
a_variable := 0; //initialize
....//some long text
a_variable| := x;
....//some long text
a_variable := a_variable + 2;
once you would press Ctrl-Alt-Up (Down), cursor would be positioned at the previous (next) variable occurrence.
I would LOVE to have hot keys for searching forward and backward... but for me, docking the search dialog against the side/bottom of the window would be even more valuable. A search dialog sitting in front of the text I am trying to search is one of the most annoying (and counter-productive) "features" I find in most text editors.
Is this still an active topic?
Does this still need to be "Sticky" ?
The Find All in document, with floating or docked results frame, is good enough for me.
If implemented, allowing us to change the keyboard shortcut would be good, I would prefer Ctrl-Shift-Up/Dwn
textmate does something to this and it's really handy.
cmd+e = load selected text into the 'find' buffer
cmd+g = find next occurrence
cmd+shft+g = find previous occurrence
actually, that's standard mac stuff. text mate adds:
cmd+shft+e = load 'replace' buffer
ctrl+cmd+f = find/replace without ever loading a "find and replace" dialog - finds the find buffer and replaces it with the replace buffer.
it's pretty sweet and sounds like it's where gatis was headed with this.
Why not adding the possibility that variables of the same name get highlighted. So, if you focus one with the cursor, the current variable all other occurences are highlighted within the source code and you'll get an optical feedback as well.
Besides the shortcuts, this would be a nice addon.
Thanks for all feedback.
We have added new functionality regarding this in the next major version 2010.
Once you select a variable, all occurrences of it will be highlighted inside the open document and you will be able to navigate to previous or next occurrence with custom shortcut key.
I am removing "Sticky" status for this topic.