ProjectCompletions
Project Completions plugin for Sublime Text
Details
Installs
- Total 1K
- Win 707
- Mac 325
- Linux 369
Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Project Completions plugin
This plugin lets you add project-specific completion snippets to your .sublime-project
files.
Install the plugin via Package Control and you can add project-specific completions via the completions
key in your .sublime-project
file.
Completions can be specified in two formats.
Simple list
Just a list of [trigger, completion]
items:
{
"folders": ...
"completions": [
[trigger, completion],
...
[trigger, completion]
]
}
where trigger
is the prefix that triggers the completion (and can contain a caption separated by \t
) and completion
is a snippet.
For more information about the syntax of completions see the Unofficial Documentation.
Using this syntax, the completions will always be available in the project.
By Scope
A dictionary with scopes as keys and lists of completions as values:
{
"folders": ...
"completions": {
selector: [
[trigger, completion],
...
[trigger, completion]
],
...
selector: [
[trigger, completion],
...
[trigger, completion]
]
}
In this case only the completions associated with selectors matching the current scope will be suggested. For more info about scope selectors see the Unofficial Documentation.
Example
{
"folders": ...
"completions":[
["I", "I am a ${1:snippet} baby!"]
]
}
To see the example in action type I and then press tab: