Home Download Buy Blog Forum Support

< tabTrigger not working

< tabTrigger not working

Postby hbbio on Sun Oct 07, 2012 3:01 am

I'm working on https://github.com/MLstate/OpaSublimeText and would like to have a tag snippet.

Problem is, the tabTrigger with < is not working for instance with:
<snippet>
<content><![CDATA[aaa]]></content>
<tabTrigger>&lt;</tabTrigger>
<scope>source.opa</scope>
</snippet>

Other snippets are fine, as classical alphanumerical tabTriggers.
Any idea?
Creator of http://opa.io
hbbio
 
Posts: 3
Joined: Fri Mar 23, 2012 3:16 pm

Re: &lt; tabTrigger not working

Postby agibsonsw on Sun Oct 07, 2012 6:32 pm

You probably need to copy and play with the setting

Code: Select all
    // Additional situations to trigger auto complete
    "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ],


and possibly word_separators. You might need to account for the semi-colon ; as well, or perhaps drop it from the trigger pro-tem.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests