Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any possible way of assigning this tool to a keyboard shortcut? I'm using this tool because the builtin console in Sublime Text 2 doesn't support interactivity (entering inputs....etc).

this tool

share|improve this question
This answer might help:… . But, since it is a menu item added by a plugin, you would have to find out what the command the plugin is calling a different way. It might be shown in the console. – d_rail Apr 18 '13 at 19:59

See the python menu commands for the package and the q/a: How can I set key bindings for menu items in Sublime Text 2?.

Add to your User keybindings file:

{ "keys": ["ctrl+shift+r"], "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"}

You'll have to do the testing because I don't have that package.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .