ProjectCompletions
Project Completions plugin for Sublime Text
Details
Installs
- Total 1K
- Win 692
- Mac 320
- Linux 361
Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 1 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 |
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: