[TxMt] prefix , suffix lines ala BBEdit in TextdMate?

Allan Odgaard throw-away-1 at macromates.com
Fri Mar 9 20:11:37 UTC 2007


On 9. Mar 2007, at 20:26, smarks.other wrote:

> [...]
> I was really hoping the such a feature prefix lines would be a non  
> brainer, but I guess it isn't.

Well, I know you said no regexps, but it really is dead simple,  
enable the regexp checkbox and then:

     Find: .+
  Replace: «prefix»$0«suffix»

Now hit “Replace All” or hold ⌥ and use the “in Selection”.

> [...]
> I wonder how much work would be involved to write a bundle that  
> offered this functionality. I suspect too much or some one would  
> have done it already.

Five minutes to make a command that encapsulates the above regexp  
replace (using Dialog.request_string for the prefix/suffix), but  
spending five minutes learning about regexps would be a better  
investment of time ;)




More information about the textmate mailing list