[TxMt] Search and replace matching brackets?

Ciarán Walsh ciawal at gmail.com
Mon Aug 27 13:01:52 UTC 2007


On 27 Aug 2007, at 04:02, Nicholas Cole wrote:

> Textmate is very good at working out which close brace goes with  
> which open brace, but as far as I can see that ability is not  
> available when doing a search and replace.  Is that right?

You could work up a macro using the Select → Enclosing Brackets  
function.

A simple example: Start recording a macro, do a find for “\footnote 
{”, press → once, press ⇧⌘B to select the enclosing brackets.

At this point you’ll have the brackets and contents of the footnote  
selected and can do what you want with them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070827/9dd7518c/attachment.html>


More information about the textmate mailing list