sublimetext2 - Sublime text editor: Change plugin hotkey? -


in sublime text 2 or 3 (i use both, , answer same both), how change hotkey of installed plugin/package? (on windows or linux / ubuntu)

i know how change key bindings of built-in sublime commands (preferences > key bindings). instance, 1 binding have is:

{"keys": ["ctrl+super+b"], "command": "show_panel", "args": {"panel": "output.exec"}} 

but in case of plugin, how know string use "command"? there easy way find out "command" arbitrary function in sublime?

i general answer applies plugin 1 install. though example, today i'm trying change hotkey plugin called simpleclone, has assigned ctrl+shift+right split right. ctrl+shift+right rather poor hotkey choice maker of plugin since has use in operating system: when typing selects word right. hence want change assigned key binding.

if plugin has shortcuts defined, in *.sublime-keymap files. if want find shortcut guess grep through *.sublime-keymap files in packages directories, if know plugin uses shortcut want change shouldn't necessary :)

for example emmet plugin has keybindings defined in: packages/emmet/default (platform).sublime-keymap.

you can copy keybinding definitions these files user keybindings file (packages/user/default (platform).sublime-keymap) , modify them want.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -