[TxMt] Column selection navigation

David Lee david at davelee.com.au
Tue Apr 12 00:23:48 UTC 2005


Just something I'm curious about - 

When you select 4 full lines (for sake of argument) and enter column mode,
the caret spans 5 lines (one below the previous selection).

Is this intentional?

D

-----Original Message-----
From: Allan Odgaard [mailto:allan at macromates.com] 
Sent: Monday, 11 April 2005 7:36 PM
To: TM Users
Subject: Re: [TxMt] Column selection navigation

On Apr 10, 2005, at 19:13, Charilaos Skiadas wrote:

>> But to "enter" the selection you can press cmd-option-A (works for 
>> normal selections only). This places the caret on the end of the 
>> first line, you can move it backwards and make changes.
> Cool, I hadn't realized you could move backward and preserve the 
> selection. One question then:
> Why can't the same be done when the columnar selection is enabled 
> through the option key?

It will eventually be possible. Initially I wasn't sure exactly how to
handle the case for a column-selection. If we have (selection of left
column):

    +--------------+
    |@"declaration"|   [NSDictionary ...]
    |@"keywords"   |   [NSDictionary ...]
    |@"strings"    |   [NSDictionary ...]
    +--------------+

I think using cmd-option-A should place carets like this:

     @"declaration"|   [NSDictionary ...]
     @"keywords"|      [NSDictionary ...]
     @"strings"|       [NSDictionary ...]

I.e. placing the caret before the last white-space sequence of each selected
sub-line.

______________________________________________________________________
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





More information about the textmate mailing list