[TxMt] Re: Emacs like "Tab Stop List"

Carsten Hoever hoever at gmx.de
Thu Aug 10 15:55:59 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Am 10.08.2006 um 14:26 schrieb Jacob Rus:


>
> I think you want to make a command which, taking into account where  
> you are on the current line, inserts the correct number of spaces.   
> The environment variable is $TM_LINE_INDEX, and you should be able  
> to just insert x - $TM_LINE_INDEX spaces, where x is the next  
> number in your list.
>
> In python this would look something like:

> [...]


> Bind this to the ⇥ key, set the input to selected text or line,  
> and set the output to insert text, and you should be all set.

Thanks, I don't have time to actually check out if this works as  
expected, but it really looks promising... :-)

Bye,

Carsten


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iEYEARECAAYFAkTbVw8ACgkQ1DEVFtlzvS2CiQCeIu6ZmWoonzYuzWlPGvjbOeNU
HT4AoIM5eHTndhG4G2SN/y57HHNDQL3A
=99+L
-----END PGP SIGNATURE-----



More information about the textmate mailing list