[TxMt] Re: regex search and replace without opening dialog

Caius Durling caius at caius.name
Thu May 13 09:03:50 UTC 2010

On 13 May 2010, at 06:22, Will wrote:

> On Wed, May 12, 2010 at 10:11 PM, Steven McDonald <mcdonald at triumf.ca> wrote:
> <snip> Am I missing something or is the a easier way to use the find and replace in textmate, without having to bring up the dialog box all the time. seems a lot of key strokes with shift cmd, option, tabs, returns etc compared to my familiar
>        s/regex-find/replace/g
> Not exactly what you're looking for (no regex) but handy and dialog free:
> 1. cmd+e to load the find buffer
> 2. type your new text
> 3. select it 
> 4. cmd+shft+e to load the replace buffer
> 5. ctrl+cmd+f to replace everything (add shift to limit the replace to a selection) 

Or if that's too much to change your workflow, write a command that takes the current selection and acts upon the file. Give it a key combo, and you can do s/old/new/g => key combo => everything replaced.

Caius Durling
caius at caius.name
+44 (0) 7960 268 100

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100513/b44e8820/attachment.html>

More information about the textmate mailing list