JulianEberius / SublimeRope

ST2 only, use SublimePythonIDE with ST3: Adds Python completions and some IDE-like functions to Sublime Text 2, through the use of the Rope library
GNU General Public License v2.0
250 stars 26 forks source link

Custom Auto Completions #84

Open SHAHRUKH-KHAN opened 8 years ago

SHAHRUKH-KHAN commented 8 years ago

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.

JulianEberius commented 7 years ago

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.