On 04/02/2011, at 7:36 PM, Mads Hartmann Jensen wrote:

> I would like to propose a standard for snippet trigger naming. 
> 
> I would like if the keyword related triggers (class, for, if, switch, 
> enumeration, etc.) all had a full keyword trigger. This makes it a LOT easier 
> for polygot programmers to be efficient users of snippets. This of course has 
> the downside that you don't safe as many characters. This can easily be 
> solved by introduction short-cut snippets. I do this in my Scala bundle[1]. 
> The short-cut snippets expand to the full keyword and as such you get the 
> same result as before by pressing tab twice. 
> 
> An example from my bundle: 
> 
> snippet: 
>       name: class 
>       trigger: class
>       output: ...code...
> snippet: 
>       name: shortcut - class 
>       trigger: c
>       output: class
> 
> How do people feel about changing their bundles to conform to this standard? 

I sympathise with your frustration, but I think what you are asking for is not 
practically achievable. It has been tried before.
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to