Sublime Forum

ST2: tab trigger for snippets not working properly

#1

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:

<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

0 Likes

#2

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.

0 Likes