From 41d3e0f015d556da4834c38a5ab350036541249c Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 23 Jun 2016 11:07:41 -0400 Subject: Extends keybindings by namespacing REPL use super+shift+r followed by "p" for Python and "j","s" for Node environments --- Default (OSX).sublime-keymap | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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" + } } ] -- cgit 1.4.1