On 13 May 2010, at 06:22, Will wrote:
On Wed, May 12, 2010 at 10:11 PM, Steven McDonald mcdonald@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:
- cmd+e to load the find buffer
- type your new text
- select it
- cmd+shft+e to load the replace buffer
- 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.
C --- Caius Durling caius@caius.name +44 (0) 7960 268 100 http://caius.name/