[TxMt] Re: smart home

Simon Strandgaard neoneye at gmail.com
Thu Apr 5 22:48:13 UTC 2007


On 12/8/06, Simon Strandgaard <neoneye at gmail.com> wrote:
> 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.


I never got an answer on this issue.

If any of you are using smart home, what way did you define it?


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



More information about the textmate mailing list