i've installed the tern-js plugin for sublime 3, however for some reason I cannot make its command work with sublime's key bindings (I'm a sublime nube btw) according to the documentation.. ternjs_jump_to_definition
is supposed to be a valid command.
So i put this in the default (OSX).sublime-keymap
file:
{ "keys": ["super+ctrl+j"], "command": "ternjs_jump_to_definition"},
{ "keys": ["super+ctrl+r"], "command": "ternjs_reload"},
I also put this.. still didn't work:
{ "keys": ["super+ctrl+j"], "command": "ternjs_jump_to_definition", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
}
any idea what's going on wrong? I know that tern-js is installed.. because typing Ctrl+Space
for code completion actually works:
any idea what I'm doing wrong? I simply want typing command+ctrl+j to jump to method definition.
Also I looked at the default sublime 3 jump to method definition (ie alt+command+down), and it only works on the same file even if i add libraries to the project. (I'm using mapbox, which works on top of leaflet).