Home Download Buy Blog Forum Support

Need help, starting off with completions...

Need help, starting off with completions...

Postby pete on Thu Feb 07, 2013 12:20 pm

Hi all!,

I'm trying to get my head around making a completions list. I've been looking at other pre-existing ones to get my head around it but I can't seem to get my own working.
I created this super simple sublime-completions file, and from other scripts it picks up on the "yeay" but pressing tab won't do "This is a test!". I thought that the yeay was meant to be the trigger for what's next. I have my head around snippets, but this seems a little different...

Code: Select all
{
   "scope": "source.js",
   "completions":
   [
    { "trigger": "yeay", "contents": "This is a test!"},
   ]
}


Anyway, If anyone could help me get going it would be great!
Thanks
Pete
pete
 
Posts: 16
Joined: Wed Jan 09, 2013 4:24 am

Re: Need help, starting off with completions...

Postby guillermooo on Thu Feb 07, 2013 1:40 pm

You have a suspicious trailing comma there.

Also, have you seen this?:

http://docs.sublimetext.info/en/latest/ ... tions.html
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: Need help, starting off with completions...

Postby pete on Thu Feb 07, 2013 8:40 pm

Ah! Thanks guillermooo that was it :)
pete
 
Posts: 16
Joined: Wed Jan 09, 2013 4:24 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Majestic-12 [Bot], Proggie, Yahoo [Bot] and 26 guests