Skip to content

Instantly share code, notes, and snippets.

@simonhaenisch
Last active February 15, 2018 00:51
Show Gist options
  • Save simonhaenisch/d130ebd1228e9ad315c270dd6632cd6a to your computer and use it in GitHub Desktop.
Save simonhaenisch/d130ebd1228e9ad315c270dd6632cd6a to your computer and use it in GitHub Desktop.
Sublime Text hotkey that triggers only when in a certain syntax #sublimetext
[
{
"keys": ["f8"],
"command": "repl_open",
"args": {
"cmd": ["python", "-u", "$file_basename"],
"cwd": "$file_path",
"encoding": "utf8",
"extend_env": {"PYTHONIOENCODING": "utf-8"},
"external_id": "python",
"type": "subprocess",
},
"context": [
{
"key": "selector",
"operator": "equal",
"operand": "source.python",
}
],
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment