Created
November 7, 2017 14:28
-
-
Save mitshel/e484e721395e01f0b02b301f49fbbff2 to your computer and use it in GitHub Desktop.
Sublime Keymap for Python development with VirtualEnv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["ctrl+1"], | |
"command": "repl_open", | |
"args": {"cmd": ["python", "-u", "$file_basename"], | |
"cwd": "$file_path", | |
"encoding": "utf8", | |
"extend_env": {"PYTHONIOENCODING": "utf-8"}, | |
"external_id": "python", | |
"syntax": "Packages/Python/Python.tmLanguage", | |
"type": "subprocess"} | |
}, | |
{ "keys": ["ctrl+2"], | |
"command": "repl_open", | |
"args": {"cmd": ["./venv/Scripts/python.exe", "-u", "$file_basename"], | |
"cwd": "$file_path", | |
"encoding": "utf8", | |
"extend_env": {"PYTHONIOENCODING": "utf-8"}, | |
"external_id": "python-venv", | |
"syntax": "Packages/Python/Python.tmLanguage", | |
"type": "subprocess"} | |
}, | |
{ "keys": ["ctrl+3"], | |
"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": ["ctrl+4"], | |
"command": "repl_open", | |
"args": {"cmd": ["./venv/Scripts/python.exe", "-i", "-u"], | |
"cwd": "$file_path", | |
"encoding": "utf8", | |
"extend_env": {"PYTHONIOENCODING": "utf-8"}, | |
"external_id": "python-venv", | |
"syntax": "Packages/Python/Python.tmLanguage", | |
"type": "subprocess"} | |
}, | |
{ "keys": ["ctrl+5"], | |
"command": "repl_open", | |
"args": {"cmd": ["cmd"], | |
"cwd": "$file_path", | |
"encoding": "cp866", | |
"external_id": "cmd", | |
"type": "subprocess"} | |
}, | |
{ "keys": ["ctrl+6"], | |
"command": "repl_open", | |
"args": {"cmd": ["cmd","/K",".\\venv\\Scripts\\activate.bat"], | |
"cwd": "$file_path", | |
"encoding": "cp866", | |
"external_id": "cmd-venv", | |
"type": "subprocess"} | |
}, | |
{ "keys": ["ctrl+7"], | |
"command": "repl_transfer_current", | |
"args": {"scope": "file"} | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment