tvl-depot/Default (OSX).sublime-keymap
William Carroll 41d3e0f015 Extends keybindings by namespacing REPL
use super+shift+r followed by "p" for Python and "j","s" for Node environments
2016-06-23 11:07:41 -04:00

58 lines
1.6 KiB
Text

[
{ "keys": ["super+\\"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{
"keys": ["super+enter"],
"command": "run_macro_file",
"args": {
"file": "res://Packages/Default/Add Line Before.sublime-macro"
}
},
{
"keys": ["j", "j"],
"command": "_enter_normal_mode",
"args": { "mode": "mode_insert" },
"context": [{"key": "vi_insert_mode_aware"}]
},
{
"keys": ["super+o"],
"command": "show_panel",
"args": { "panel": "console", "toggle": true }
},
{
"keys": ["super+shift+o"],
"command": "reveal_in_side_bar"
},
{
"keys": ["super+shift+r","p"],
"command": "repl_open",
"args": {
"cmd": ["python", "-i", "-u"],
"cwd": "$file_path",
"encoding": "utf8",
"extend_env": { "PYTHONIOENCODING": "utf-8" },
"external_id": "python",
"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"
}
}
]