[TxMt] smart home

Simon Strandgaard neoneye at gmail.com
Fri Dec 8 11:23:24 UTC 2006


The macro described here has a few oddities.
http://comox.textdrive.com/pipermail/textmate/2005-October/006444.html

<quote>
1) move to beginning of line (ctrl A)
2) regexp search for: (?=\S|$)
</quote>


Lets say '#' indicates where the cursor is.

When I press Home on the following line..
@implementation App#Controller
Then the cursor is placed between '@' and 'i'.


When I press Home on the following line..
x		-(IBAction)te#st:(id)sender {
Then the cursor is placed just before '-'.


Pressing home on an empty line then the cursor is
placed on the following line.


Is there a better smart-home macro?
preferable a smart-home macro that can toggle
between line-begin and text-begin.

--
Simon Strandgaard
http://opcoders.com/



More information about the textmate mailing list