It works now, just a little mendment:
- Define file type: from Line 5 - 15 and move scopeName to beginning.
- Definition of comment change to comment.line.xys and comment.block.xys (Line 17-31)
Problem: these key bindings don’t work, I don’t know why:
{ “keys”: “ctrl+/”], “command”: “toggle_comment”, “args”: { “block”: false } },
{ “keys”: “ctrl+shift+/”], “command”: “toggle_comment”, “args”: { “block”: true } },
Fixed (see next post)
To improve: May add more definitions such as:
keyword.control.xys
constant.language
keyword.other.xys
punctuation.xys
constant.numeric.source.xys
string.quoted.xys
punctuation.quote.double
quoted.string.line.xys
Tip: You can rename the extension from .sublime-package to .zip → extract → view .tmlanguage file inside that .zip for reference
.sublime-package are located in
Sublime Text\Packages*.sublime-package
If you intend to make .sublime-completions too, then take a look at this problem with ST3: http://www.autohotkey.com/board/topic/46447-sublime-text-editor-very-nice/page-5#entry592694
I ended up deleting the .sublime-completions.
Of course it can be solve by
def on_query_completions(self, view, prefix, locations)
But I’m dumb at Python, so, unless someone post a solution, I do not recommend using .sublime-completions
XYplorer.zip (1.28 KB)