On 8/27/07, Ciarán Walsh <ciawal@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@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate