SublimeRope
SublimeRope copied to clipboard
Custom Auto Completions
This is my rawHTML.sublime-completions
file
{
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",
"completions":
[
{ "trigger": "x", "contents": "<a href=\"$1\">$0</a>" },
{ "trigger": "abbr\t<abbr>", "contents": "<abbr>$0</abbr>" }
]
}
Below is my preferences.sublime-settings
{
"auto_complete": true,
// The maximum file size where auto complete will be automatically triggered.
"auto_complete_size_limit": 4194304,
// The delay, in ms, before the auto complete window is shown after typing
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
// Additional situations to trigger auto complete
"auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ],
}
The point is when I press x in a HTML file. It does not fire.
Sorry, but I really cannot support SublimeRope anymore. It was a hobby-project, and I haven't used it myself for years. Sorry that I cannot be of any more help.