Oh, yeah, I kinda noticed that.

What I was more after was something a bit like BBEdit's cmd-B which extends the 
selection to the surrounding matched-pair (e.g. parentheses, braces, do/end, 
etc), or like NetBeans' feature where if you have your caret near a matched 
pair item, it highlights the opposing pair item.

I find it useful when refactoring long methods that have too much nesting...



On 09/12/2009, at 12:39 PM, Dr Nic Williams wrote:

> end tags attempt to self-format. Very simple: when you type "end" it indents 
> by -1 tab. This generally gives the behaviour of auto-indention, except where 
> it doesn't. Wow, that was an impressive explanation.
> 
> On Wed, Dec 9, 2009 at 11:31 AM, suranyami <[email protected]> wrote:
> Okay, answered one of my questions:
> 
> Reformat Selection is NOT what I want... "Indent Selection" IS,
> though. cmd-option-[ short cut...
> 
> Now for finding the balanced do/end or parantheses...
> 
> 
> 
> On Dec 8, 11:24 am, David Parry <[email protected]> wrote:
> > I've only recently converted to TextMate... I was using NetBeans, which is 
> > great for some things, but got a bit tired of seeing SPOD (Spinning Pizza 
> > of Death).
> >
> > Anyway, here's a few newbie questions that I can't seem to find answers for 
> > in the documentation:
> >
> > 1. How to balance do/ends?
> >
> > I can't see an easy way to do this... I would think this was pretty 
> > essential.
> >
> > 2. Reformat Selection: why does it suck so hard?
> >
> > ...and what is the alternative?
> >
> > I'd really appreciate some Ruby/TextMate-fu from some of the grand masters 
> > out there.
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 
> 
> 
> 
> 
> -- 
> Dr Nic Williams
> Mocra - Premier iPhone and Ruby on Rails Consultants
> w - http://mocra.com
> twitter - @drnic
> skype - nicwilliams
> e - [email protected]
> p - +61 412 002 126 or +61 7 3102 3237
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.

--

You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.


Reply via email to