Home Download Buy Blog Forum Support

Tab trigger of - only

Tab trigger of - only

Postby anhil on Sat Apr 07, 2012 6:21 pm

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:


Code: Select all
<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?
anhil
 
Posts: 13
Joined: Sun Apr 01, 2012 8:07 pm

Re: Tab trigger of - only

Postby anhil on Fri Apr 13, 2012 10:24 am

Any idea on this?
anhil
 
Posts: 13
Joined: Sun Apr 01, 2012 8:07 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 29 guests