Skip to content

Instantly share code, notes, and snippets.

@ravinsharma12345
Created August 14, 2013 17:45
Show Gist options
  • Save ravinsharma12345/6233530 to your computer and use it in GitHub Desktop.
Save ravinsharma12345/6233530 to your computer and use it in GitHub Desktop.
Random stuff, no time to arrange.
{
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",
"completions":
[
{ "trigger": "a", "contents": "<a href=\"$1\">$0</a>" },
{ "trigger": "abbr", "contents": "<abbr>$0</abbr>" },
{ "trigger": "acronym", "contents": "<acronym>$0</acronym>" }
]
}
Plain Strings
--------------
"foo"
# is equivalent to:
{ "trigger": "foo", "contents": "foo" }
Trigger-base completions
-----------------------
Trigger-based Completions
trigger
Text that will be displayed in the completions list and will cause the contents to be inserted when validated.
contents
Text to be inserted in the buffer. Can use snippet features.
Sources for completions
-----------------------
.sublime-completions
EventListener.on_query_completions()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment