diff options
author | William Carroll <wpcarro@gmail.com> | 2016-06-23T15·07-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2016-06-23T15·07-0400 |
commit | 41d3e0f015d556da4834c38a5ab350036541249c (patch) | |
tree | 95c7509743cae82ba29831c226fcd25300cbf91e /Default (OSX).sublime-keymap | |
parent | 3fe3a44c225f4cc3edf44024d10ab9349f1117b5 (diff) |
Extends keybindings by namespacing REPL
use super+shift+r followed by "p" for Python and "j","s" for Node environments
Diffstat (limited to 'Default (OSX).sublime-keymap')
-rw-r--r-- | Default (OSX).sublime-keymap | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index 3ab1306b2dc4..419051131cee 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -25,7 +25,7 @@ "command": "reveal_in_side_bar" }, { - "keys": ["super+shift+r"], + "keys": ["super+shift+r","p"], "command": "repl_open", "args": { "cmd": ["python", "-i", "-u"], @@ -36,5 +36,23 @@ "syntax": "Packages/Python/Python.tmLanguage", "type": "subprocess" } + }, + { + "keys": ["super+shift+r","j","s"], + "command": "repl_open", + "args": { + "autocomplete_server": true, + "cmd": { + "linux": ["node", "${packages}/SublimeREPL/config/NodeJS/repl.js"], + "osx": ["node", "${packages}/SublimeREPL/config/NodeJS/repl.js"], + "windows": ["node.exe", "${packages}/SublimeREPL/config/NodeJS/repl.js"] + }, + "cwd": "$file_path", + "encoding": "utf8", + "extend_env": { "NODE_NO_READLINE": 1 }, + "external_id": "js", + "syntax": "Packages/JavaScript/JavaScript.tmLanguage", + "type": "subprocess" + } } ] |