Hi all!
In spadgos’ package JSDocs there is the following key binding:
{ "keys": "@"], "command": "auto_complete", "context":
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\s*(?:\\*|\\/\\*{2})\\s+$", "match_all": true },
{ "key": "selector", "operator" : "equal", "operand" : "comment.block.documentation"}
]
}
As far as I can understand (I’m actually new to ST2 and not a Python expert…) it invokes the “auto_complete” command, passing it some arguments (is it the right term?): selection_empty, preceding_text, selector.
Now:
- Where is defined the command auto_complete?
- How may I know its syntax?
- (a specialised version of question 2) How it uses the its arguments?
Please, help me if you can. I’m getting lost with ST2, for the lack of documentation, but I’d really want to find my way with it.
TIA
bblue