My default key-bindings for pasting are
{ "keys": ["ctrl+v"], "command": "paste" },
{ "keys": ["ctrl+shift+v"], "command": "paste_and_indent" },
I overrode them in my user key-bindings with
{ "keys": ["alt+k"], "command": "paste" },
{ "keys": ["ctrl+k"], "command": "paste_and_indent" },
I use Dvorak keyboard, which means your V is my K. Also, I want paste_and_indent
to be the default.
But Ctrl+k executes paste
, not paste_and_indent
. I determined this by turning on command logging in the console, with
sublime.log_commands(True)
However, if I make the paste_and_indent
command to something else, like Ctrl+Alt+k or Alt+k, it correctly calls paste_and_indent
.
I looked through the key-bindings for all of my installed packages, and don't see any other command using Ctrl+k. I also disabled most of my packages except syntaxes. I even accidentally disabled Package Control, but still, Ctrl+k only executes paste
.
How can I determine and fix this conflict, so Ctrl+k executes paste_and_indent
?
Check out the FindKeyConflicts
plugin. There are several options for looking at all key bindings, or just conflicting ones, in a variety of contexts. All the options are available via the Command Palette.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With