Home Download Buy Blog Forum Support

ST2: tab trigger for snippets not working properly

ST2: tab trigger for snippets not working properly

Postby fndari on Tue Feb 12, 2013 1:04 am

Hi everyone,

I was creating snippets for the first time and noticed that tab triggers appear to be acting weird.

Case in point: a snippet to create a new frame in LaTeX (beamer), saved in my Packages/User folder as LaTeX_Frame.sublime-snippet:

Code: Select all
<snippet>
   <content><![CDATA[
\\begin{frame}{${1:Title}}{${2:Subtitle}}
   ${3:content}
\\end{frame}   
]]></content>
   <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
   <tabTrigger>frime</tabTrigger>
   <scope>text.tex.latex</scope>
    <description>new Beamer frame</description>
</snippet>


I've tried several different values for tabTrigger: it doesn't work with frame or frome, but it works perfectly with frime like in the example and variations like friime, friiime, ...

Obviously this is very strange, since it seems to behave differently depending on which (non-existant) word I choose as a tab trigger. I've googled around a bit, but couldn't manage to find anything useful. Any ideas?

I'm using Sublime v2.0.1, build 2217 on Win7 x64.

Thanks,

Ludo
fndari
 
Posts: 1
Joined: Tue Feb 12, 2013 12:28 am

Re: ST2: tab trigger for snippets not working properly

Postby cjmcqueen on Wed Mar 13, 2013 11:11 pm

Were you able to get your snippet to function? I've created snippets before and it worked fine. This time, after installing Sublime 2 on a new machine I'm unable to activate snippets.
cjmcqueen
 
Posts: 1
Joined: Wed Mar 13, 2013 11:08 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 20 guests