mirror of
https://github.com/sstent/sublime-text-3.git
synced 2026-01-26 07:01:47 +00:00
87 lines
3.6 KiB
Plaintext
87 lines
3.6 KiB
Plaintext
[
|
|
{
|
|
"id": "tools",
|
|
"children":
|
|
[{
|
|
"caption": "SublimeREPL",
|
|
"mnemonic": "r",
|
|
"id": "SublimeREPL",
|
|
"children":
|
|
[
|
|
{"caption": "Python",
|
|
"id": "Python",
|
|
|
|
"children":[
|
|
{"command": "repl_open",
|
|
"caption": "Python",
|
|
"id": "repl_python",
|
|
"mnemonic": "p",
|
|
"args": {
|
|
"type": "subprocess",
|
|
"encoding": "utf8",
|
|
"cmd": ["python", "-i", "-u"],
|
|
"cwd": "$file_path",
|
|
"syntax": "Packages/Python/Python.tmLanguage",
|
|
"external_id": "python",
|
|
"extend_env": {"PYTHONIOENCODING": "utf-8"}
|
|
}
|
|
},
|
|
{"command": "python_virtualenv_repl",
|
|
"id": "python_virtualenv_repl",
|
|
"caption": "Python - virtualenv"},
|
|
{"command": "repl_open",
|
|
"caption": "Python - PDB current file",
|
|
"id": "repl_python_pdb",
|
|
"mnemonic": "d",
|
|
"args": {
|
|
"type": "subprocess",
|
|
"encoding": "utf8",
|
|
"cmd": ["python", "-i", "-u", "-m", "pdb", "$file_basename"],
|
|
"cwd": "$file_path",
|
|
"syntax": "Packages/Python/Python.tmLanguage",
|
|
"external_id": "python",
|
|
"extend_env": {"PYTHONIOENCODING": "utf-8"}
|
|
}
|
|
},
|
|
{"command": "repl_open",
|
|
"caption": "Python - RUN current file",
|
|
"id": "repl_python_run",
|
|
"mnemonic": "d",
|
|
"args": {
|
|
"type": "subprocess",
|
|
"encoding": "utf8",
|
|
"cmd": ["python", "-u", "$file_basename"],
|
|
"cwd": "$file_path",
|
|
"syntax": "Packages/Python/Python.tmLanguage",
|
|
"external_id": "python",
|
|
"extend_env": {"PYTHONIOENCODING": "utf-8"}
|
|
}
|
|
},
|
|
{"command": "repl_open",
|
|
"caption": "Python - IPython",
|
|
"id": "repl_python_ipython",
|
|
"mnemonic": "p",
|
|
"args": {
|
|
"type": "subprocess",
|
|
"encoding": "utf8",
|
|
"autocomplete_server": true,
|
|
"cmd": {
|
|
"osx": ["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
|
|
"linux": ["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
|
|
"windows": ["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]
|
|
},
|
|
"cwd": "$file_path",
|
|
"syntax": "Packages/Python/Python.tmLanguage",
|
|
"external_id": "python",
|
|
"extend_env": {
|
|
"PYTHONIOENCODING": "utf-8",
|
|
"SUBLIMEREPL_EDITOR": "$editor"
|
|
}
|
|
}
|
|
}
|
|
]}
|
|
]
|
|
}]
|
|
}
|
|
]
|