Just downloaded your bundle, the Balance Jr Macro is pretty sweet. Indeed not exactly what I was looking for, and what was previously very thoroughly and precisely explained by Eric O'Brien, but nevertheless a very useful addition and a good example to study and see if I can figure out how to code the functionality myself.
I thought there was a shortcut out of the box for that though, I used to use it all the time in BBEdit and somehow assumed it was also in TM. My bad! :) Time to brush up on my regex...
On Feb 6, 2006, at 3:20 AM, textmate-request@lists.macromates.com wrote:
I've written a couple of pretty handy macros that do something pretty handy, although not precisely what you guys are talking about.
Check out the ScreenCast! http://subtlegradient.com/articles/2006/02/05/my_textmate_bundles_etc
You place your caret inside something and the macro will select everything in between enclosing characters. It's kinda like the balance command, except it grabs everything INSIDE the characters, but not the characters themselves.
it works with:
[], {}, (), '', "", word="", <>, ><, $word, @word, /* word */, <% word %>, <%= word %>, <%# word %>, <%@ word %>, integers, and probably more, but I forget now.
How it applies to this conversation. If you want to select the "paragraph text" section of the following HTML, place your caret somewhere in the text and hit the macro. It'll select everything between the > & < characters.
<p class="blah"> paragraph text </p>
It's hip, you'll hate it!