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
Post a Comment