Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: superuser.com/questions/544486/… . 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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.