On Mar 21, 2008, at 10:09 AM, Rick DeNatale wrote:
On 3/21/08, Rick DeNatale rick.denatale@gmail.com wrote:
On 3/21/08, Sean Allen sean@ardishealth.com wrote:
Does textmate have an equivalent to emacs query replace that takes
term to search for, what to replace it with and then steps through each match and asks if you want to replace or not ( moving view obviously to that area so you can view the code around it )
Sure, the Find dialog box (which is actually also the Find/Replace dialog) has buttons to:
Find the next (or previous) occurrence of the search test/regex Replace what it found or Replace what it found and find the next occurrence.
I stopped too soon.
You can also do this with keystrokes.
Cmd-E makes the selection the search text Cmd-Shift-E makes the selection the replacement text Cmd-G searches forward, Cmd-Shift-G searches backward Alt-Cmd-F replaces and finds next.
What is the the keystroke command to just move to the next result, ie keystroke that corresponds to the next button...