Sublime Forum

Disable/remove keybindings from ST2 API

#1

Probably a question that only Jon could answer…

On my endless search for resolving keybindings clashes, I wrote a script (calling it plugin is probably too much) that parse keybindings json files and find duplicated keybindings. So I could find which keybindings must be removed/modified.
But it’s only half the way to the solution, now I want to correct them automatically as the package could be updated by Package Control fairly often.

So right now the only way to deal with this issue is to edit the keybindings file from the offending package, which is not very convenient.

My question:
Do you think it is possible to add an API method to disable a specific keybindings ?
A method accepting the package name/path and the json definition of the keybinding as parameter.
This way we could write a plugin to resolve these conflicts whitout physically changing files.

BTW, there is a keybinding in the Default package that is defined 2 times:

<ctrl+shift+backspace> left_delete Default run_macro_file Default

0 Likes