[TxMt] emacs query-replace equiv?
Rick DeNatale
rick.denatale at gmail.com
Fri Mar 21 14:09:03 UTC 2008
On 3/21/08, Rick DeNatale <rick.denatale at gmail.com> wrote:
> On 3/21/08, Sean Allen <sean at 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.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
More information about the textmate
mailing list