Extends keybindings by namespacing REPL

use super+shift+r followed by "p" for Python and "j","s" for Node environments
This commit is contained in:
William Carroll 2016-06-23 11:07:41 -04:00
parent 3fe3a44c22
commit 41d3e0f015

View file

@ -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"
}
}
]