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
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…