How to diagnose and fix key conflict in Sublime Text 3?

My default key bindings for insertion

{ "keys": ["ctrl+v"], "command": "paste" }, { "keys": ["ctrl+shift+v"], "command": "paste_and_indent" }, 

I redefined them in my key bindings with

 { "keys": ["alt+k"], "command": "paste" }, { "keys": ["ctrl+k"], "command": "paste_and_indent" }, 

(I use Dvorak , which means that your V is my K Also, I want paste_and_indent by default.)

But ctrl + k does paste , not paste_and_indent . I determined this by enabling command logging in the console using

 sublime.log_commands(True) 

However, if I make the paste_and_indent command something else, for example ctrl + alt + k or alt + k , it correctly calls paste_and_indent .

I have looked at the key bindings for all of my installed packages and cannot see any other command using ctrl + k . I also disabled almost all packages except syntaxes (I even accidentally disabled package management ), but still ctrl + k only performs paste .

How can I identify and fix this conflict, so ctrl + k does paste_and_indent ?

+6
source share
1 answer

Open the FindKeyConflicts plugin. There are several options for viewing all key bindings or simply conflicting in different contexts. All options are available through the command palette.

+7
source

Source: https://habr.com/ru/post/976063/


All Articles