Skip to content

Instantly share code, notes, and snippets.

@Veedrac
Created December 31, 2013 17:02
Show Gist options
  • Save Veedrac/8199588 to your computer and use it in GitHub Desktop.
Save Veedrac/8199588 to your computer and use it in GitHub Desktop.
[
{
"caption": "SublimeREPL: Python 3",
"command": "run_existing_window_command", "args":
{
"id": "repl_python3",
"file": "config/Python3/Main.sublime-menu"
}
},
{
"caption": "SublimeREPL: Python 3 - PDB current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python3_pdb",
"file": "config/Python3/Main.sublime-menu"
}
},
{
"caption": "SublimeREPL: Python 3 - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python3_run",
"file": "config/Python3/Main.sublime-menu"
}
},
{
"command": "python3_virtualenv_repl",
"caption": "SublimeREPL: Python 3 - virtualenv"
},
{
"caption": "SublimeREPL: Python 3 - IPython",
"command": "run_existing_window_command", "args":
{
"id": "repl_python3_ipython",
"file": "config/Python3/Main.sublime-menu"
}
}
]
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"caption": "Python 3",
"id": "Python 3",
"children":[
{"command": "repl_open",
"caption": "Python 3",
"id": "repl_python3",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python3",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "python3_virtualenv_repl",
"id": "python3_virtualenv_repl",
"caption": "Python 3 - virtualenv"},
{"command": "repl_open",
"caption": "Python 3 - PDB current file",
"id": "repl_python3_pdb",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u", "-m", "pdb", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python3",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "repl_open",
"caption": "Python 3 - RUN current file",
"id": "repl_python3_run",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-u", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python3",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "repl_open",
"caption": "Python 3 - IPython",
"id": "repl_python3_ipython",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"autocomplete_server": true,
"cmd": {
"osx": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"linux": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"windows": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]
},
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python3",
"extend_env": {
"PYTHONIOENCODING": "utf-8",
"SUBLIMEREPL_EDITOR": "$editor"
}
}
}
]}
]
}]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment