Home Download Buy Blog Forum Support

Snippet trigger doesn't work if it starts with period

Snippet trigger doesn't work if it starts with period

Postby jakobud on Thu Jun 14, 2012 4:05 pm

I used Package Control to install the jQuery package. A lot of the jQuery snippets start with a period, like .ajax for example. When I type .ajax, or any snippet trigger that starts with a period, it isn't triggered as it should be. Is this a bug or is this by design? I would think that the creator of the jQuery package would have seen this very obvious bug.
jakobud
 
Posts: 37
Joined: Wed Feb 17, 2010 6:05 pm

Re: Snippet trigger doesn't work if it starts with period

Postby agibsonsw on Thu Jun 14, 2012 5:39 pm

If you want to trigger snippet-completions with a dot then create/modify this setting:

Code: Select all
    // Additional situations to trigger auto complete
    "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ],
"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 Technical Support

Who is online

Users browsing this forum: evilpot, Majestic-12 [Bot] and 27 guests