[TxMt] Force Tabs with snippets

Ciarán Walsh ciawal at gmail.com
Fri Jun 1 15:39:19 UTC 2007


You could maybe achieve this with some clever format strings, but  
it's going to be easier (and clearer) to just do it with a command  
instead.

On 1 Jun 2007, at 16:21, Helmut Granda wrote:

> Hi All,
>
> I am creating snippets and I was wondering if there is a way to  
> force tabs to follow similar lines...
>
> Sample
>
> Snippet 1
>
> mytext -> -> -> Text
>
> Snippet 2
>
> (listens to line above and uses the tabs necessary to align Text in  
> next line
>
> mytexttwo -> -> Text
>
> So it would look like this:
>
> mytext -> -> -> Text
> mytexttwo -> -> Text
>
> I can create two different snippets that use 1 or 2 or 3 tabs as  
> neccesary but since i will never know what mytext will be I need to  
> create the tabs in some kind of dynamic way.
>
> Any ideas?
>
> ______________________________________________________________________
> 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