calva icon indicating copy to clipboard operation
calva copied to clipboard

Some custom keybinding does not work, e.g., paredit.backwardSexp

Open introom opened this issue 4 years ago • 1 comments

{"key": "ctrl+, b",
        "command": "paredit.backwardSexp",
         "when": "calva:cursorBeforeComment && editorLangId == 'clojure' || calva:keybindingsEnabled && editorTextFocus && !calva:cursorInComment && !config.calva.paredit.hijackVSCodeDefaults && editorLangId == 'clojure' && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},

The above key binding does not work. If we take out the !config.calva.paredit.hijackVSCodeDefaults part, then it works again.

However, the original key binding ctrl|+ works fine with the same setting.

introom avatar Jul 25 '21 08:07 introom

What's your setting for calva.paredit.hijackVSCodeDefaults? If it's enabled then the !config.calva.paredit.hijackVSCodeDefaults would disable the shortcut. But you don't need to involve that setting in your keybinding anyway. It's more a thing for Calva's default shortcut definitions.

PEZ avatar Dec 15 '23 15:12 PEZ