Home Download Buy Blog Forum Support

Clean way to override default completions?

Clean way to override default completions?

Postby rchl on Tue Jan 17, 2012 11:36 pm

HTML.sublime-completions defines:
Code: Select all
      { "trigger": "script", "contents": "<script type=\"${1:text/javascript}\">$0</script>" },

for example.
If I would like to have my own version of this completion that has removed type attribute, what would be the way to do it?

Until recently, my custom HTML.sublime-completions placed in the User directory seemed to work.
Code: Select all
   "scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",

      { "trigger": "script", "contents": "<script>\n   $0\n</script>" }

But currently, it looks like original completion has priority over my custom one so just pressing "tab" autocompletes to the original one.
Any hints how to deal with it?
I don't want to remove original completions because they will be restored sooner or later with some future update.
Posts: 154
Joined: Fri Mar 04, 2011 11:02 pm

Re: Clean way to override default completions?

Postby scottymac on Fri Jan 20, 2012 10:00 pm

Same issue here. Maybe a regression?
Posts: 1
Joined: Fri Jan 20, 2012 9:41 pm

Return to General Discussion

Who is online

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