SublimeRope icon indicating copy to clipboard operation
SublimeRope copied to clipboard

Custom Auto Completions

Open SHAHRUKH-KHAN opened this issue 8 years ago • 1 comments

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.

SHAHRUKH-KHAN avatar Mar 09 '16 12:03 SHAHRUKH-KHAN

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.

JulianEberius avatar Mar 12 '17 06:03 JulianEberius