[TxMt] Search and replace matching brackets?

Nicholas Cole nicholas.cole at gmail.com
Wed Aug 29 05:55:40 UTC 2007


On 8/27/07, Ciarán Walsh <ciawal at gmail.com> wrote:
>
>
> 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.
>


Hmmm. An ingenious solution that wouldn't have occurred to me!

But it would still be nice to search and replace matching things....I wonder
if Allan is reading.... ;-)

______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070829/c2c2a74c/attachment.html>


More information about the textmate mailing list