I have a code snippet whose code often gets tacked onto the end of some text. Here is the snippet:
<snippet>
<content><![CDATA[
\textsubscript{$1}
]]></content>
<tabTrigger>ts</tabTrigger>
</snippet>
The typical use case for this is when I'm writing a document in LaTeX and need to subscript something in text mode; e.g., NP\textsubcript{count}
. In every case the snippet will be appended to the previous word.
The problem I'm having is that Sublime only triggers the completion when the tab trigger (ts
) appears on its own -- not when it is appended to a word. Usually this is exactly the behavior I want, but in this case I need there to be no space between, e.g., NP
and \textsubscript{count}
. Is there some way to achieve this?