Sublime Forum

Tab trigger of - only

#1

Hello,

I am using the LaTeX mode and I’d like to create my own snippet. I sometimes have words like mailing-list (don’t hit me if this is incorrect) that have a dash inside. For the sake of better hyphenation, I should use mailing"= list, which is harder to type. Now I thought to be smart and create a snippet for that:

<snippet> <content><![CDATA[ "= ]]></content> <tabTrigger>-</tabTrigger> <scope>text.tex.latex</scope> </snippet>

But that only works if the dash (-) for the tab trigger is not connected to a word. That means, if I write “mailing-” and press tab, nothing happens. But if I write “mailing -” (with a space) and press tab, I get ‘mailing "=’, which is fine, but of course awkward to delete the space afterwards.

What can I do to have the dash with a text before still be regarded for the tab trigger?

0 Likes

#2

Any idea on this?

0 Likes