Skip to content

Instantly share code, notes, and snippets.

@erikcc02
Last active May 9, 2022 13:44
Show Gist options
  • Save erikcc02/a169476685ad363d78b75b05a2f4d142 to your computer and use it in GitHub Desktop.
Save erikcc02/a169476685ad363d78b75b05a2f4d142 to your computer and use it in GitHub Desktop.
[Calva and Terminal] Keybindings of external keyboard MAC for VS Code
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+enter",
"command": "calva.evaluateSelection",
"when": "calva:connected && calva:keybindingsEnabled && editorTextFocus && !suggestWidgetVisible && editorLangId == 'clojure'"
},
{
"key": "cmd+c",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0003"
},
"when": "terminalFocus"
},
{
"key": "cmd+l",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u000C"
},
"when": "terminalFocus"
},
{
"key": "cmd+d",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0004"
},
"when": "terminalFocus"
},
{
"key": "cmd+r",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0012"
},
"when": "terminalFocus"
},
{
"key": "shift+cmd+[BracketLeft]",
"command": "workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "cmd+shift+s left",
"command": "paredit.slurpSexpBackward",
"when": "calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "cmd+shift+s right",
"command": "paredit.slurpSexpForward",
"when": "calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "shift+cmd+b left",
"command": "paredit.barfSexpBackward",
"when": "calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
},
{
"key": "cmd+shift+b right",
"command": "paredit.barfSexpForward",
"when": "calva:keybindingsEnabled && editorTextFocus && editorLangId == 'clojure' && paredit:keyMap =~ /original|strict/"
}
]
//reference:
//https://www.techonthenet.com/unicode/chart.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment