Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alternative Calva keybindings, for keyboard layouts where `ctrl+alt` is `altgr`
// Alternative Calva keybindings, for keyboard layouts where `ctrl+alt` is `altgr`
// * Using `ctrl+shift` instead of `ctrl+alt`
// Calva: https://github.com/BetterThanTomorrow/calva
// Paste the contents of the top level array into the correspning array in your `keybindings.json` file.
// (You can open that file easily using the *Preferences: Open Keyboard Shortuts (JSON)* command in vscode.)
[
{
"command": "calva.tellAboutNewChordingKey",
"key": "ctrl+shift+v",
"when": "editorLangId == clojure"
},
{
"command": "calva.jackIn",
"key": "ctrl+shift+c ctrl+shift+j"
},
{
"command": "calva.connect",
"key": "ctrl+shift+c ctrl+shift+c"
},
{
"command": "calva.connectNonProjectREPL",
"key": "ctrl+shift+c alt+c"
},
{
"command": "calva.toggleCLJCSession",
"key": "ctrl+shift+c ctrl+shift+s"
},
{
"command": "calva.switchCljsBuild",
"key": "ctrl+shift+c ctrl+shift+b"
},
{
"command": "calva.selectCurrentForm",
"key": "ctrl+shift+c ctrl+s"
},
{
"command": "calva.evaluateSelection",
"key": "ctrl+shift+c e",
"win": "ctrl+shift+c v"
},
{
"command": "calva.interruptAllEvaluations",
"key": "ctrl+shift+c ctrl+shift+d"
},
{
"command": "calva.evaluateCurrentTopLevelForm",
"key": "ctrl+shift+c space"
},
{
"command": "calva.evaluateSelectionReplace",
"key": "ctrl+shift+c r"
},
{
"command": "calva.evaluateSelectionAsComment",
"key": "ctrl+shift+c c"
},
{
"command": "calva.evaluateTopLevelFormAsComment",
"key": "ctrl+shift+c ctrl+space"
},
{
"command": "calva.copyLastResults",
"key": "ctrl+shift+c ctrl+c"
},
{
"command": "calva.loadFile",
"key": "ctrl+shift+c enter"
},
{
"command": "calva.togglePrettyPrint",
"key": "ctrl+shift+c p"
},
{
"command": "calva.requireREPLUtilities",
"key": "ctrl+shift+c ctrl+u"
},
{
"command": "calva.runNamespaceTests",
"key": "ctrl+shift+c t"
},
{
"command": "calva.runAllTests",
"key": "ctrl+shift+c shift+t"
},
{
"command": "calva.rerunTests",
"key": "ctrl+shift+c ctrl+t"
},
{
"command": "calva.runTestUnderCursor",
"key": "ctrl+shift+c ctrl+shift+t"
},
{
"command": "calva.loadNamespace",
"key": "ctrl+shift+c ctrl+shift+n"
},
{
"command": "calva.setREPLNamespace",
"key": "ctrl+shift+c alt+n"
},
{
"command": "calva.evalCurrentFormInREPLWindow",
"key": "ctrl+shift+c ctrl+shift+e",
"win": "ctrl+shift+c ctrl+shift+v"
},
{
"command": "calva.evalCurrentTopLevelFormInREPLWindow",
"key": "ctrl+shift+c ctrl+shift+space"
},
{
"command": "calva.runCustomREPLCommand",
"key": "ctrl+shift+c ."
},
{
"command": "paredit.togglemode",
"key": "ctrl+shift+p ctrl+shift+m",
"when": "paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.forwardSexp",
"key": "ctrl+shift+right",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.backwardSexp",
"key": "ctrl+shift+left",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.backwardDownSexp",
"key": "ctrl+shift+up",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.forwardUpSexp",
"key": "ctrl+shift+down",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectForwardSexp",
"key": "ctrl+shift+alt+right",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectBackwardSexp",
"key": "ctrl+shift+alt+left",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectForwardDownSexp",
"key": "ctrl+shift+down",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectBackwardDownSexp",
"key": "ctrl+shift+alt+up",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectForwardUpSexp",
"key": "ctrl+shift+alt+down",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectBackwardUpSexp",
"key": "ctrl+shift+up",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectCloseList",
"key": "ctrl+shift+end",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.selectOpenList",
"key": "ctrl+shift+home",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.rangeForDefun",
"key": "ctrl+shift+w space",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.sexpRangeContraction",
"key": "ctrl+shift+w",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.slurpSexpBackward",
"key": "ctrl+shift+left",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.barfSexpBackward",
"key": "ctrl+shift+right",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.spliceSexp",
"key": "ctrl+shift+s",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.splitSexp",
"key": "ctrl+shift+s",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.joinSexp",
"key": "ctrl+shift+j",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.raiseSexp",
"key": "ctrl+shift+p ctrl+shift+r",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.transpose",
"key": "ctrl+shift+t",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprBackward",
"key": "ctrl+shift+alt+b",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprForward",
"key": "ctrl+shift+alt+f",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprBackwardUp",
"key": "ctrl+shift+alt+u",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprForwardDown",
"key": "ctrl+shift+alt+d",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprForwardUp",
"key": "ctrl+shift+alt+k",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.dragSexprBackwardDown",
"key": "ctrl+shift+alt+j",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "-paredit.convolute",
"key": "ctrl+shift+c"
},
{
"command": "paredit.killSexpForward",
"key": "ctrl+shift+delete",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.killSexpBackward",
"key": "ctrl+shift+backspace",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.spliceSexpKillForward",
"key": "ctrl+shift+shift+delete",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.spliceSexpKillBackward",
"key": "ctrl+shift+shift+backspace",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.wrapAroundParens",
"key": "ctrl+shift+shift+p",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.wrapAroundSquare",
"key": "ctrl+shift+shift+s",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.wrapAroundCurly",
"key": "ctrl+shift+shift+c",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.wrapAroundQuote",
"key": "ctrl+shift+shift+q",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.rewrapParens",
"key": "ctrl+shift+r ctrl+shift+p",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.rewrapSquare",
"key": "ctrl+shift+r ctrl+shift+s",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.rewrapCurly",
"key": "ctrl+shift+r ctrl+shift+c",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "paredit.rewrapQuote",
"key": "ctrl+shift+r ctrl+shift+q",
"when": "calva:replWindowActive || editorLangId == clojure && editorTextFocus && paredit:keyMap =~ /original|strict/"
},
{
"command": "calva-fmt.alignCurrentForm",
"key": "ctrl+shift+l",
"when": "editorLangId == clojure && editorTextFocus && !editorReadOnly && !suggestWidgetVisible && !hasOtherSuggestions"
},
{
"command": "calva-fmt.inferParens",
"key": "ctrl+shift+f ctrl+shift+p",
"when": "editorLangId == clojure && editorTextFocus && !editorReadOnly && !suggestWidgetVisible && !hasOtherSuggestions"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment