From 5e2c87aa178fc23c9ddc7f29ae5e98a3b11064aa Mon Sep 17 00:00:00 2001 From: Badstagram Date: Mon, 15 Dec 2025 15:16:54 +0000 Subject: [PATCH] fix(vscode): use cmd not ctrl on macos --- .chezmoitemplates/keybindings.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.chezmoitemplates/keybindings.json b/.chezmoitemplates/keybindings.json index 32aff8f..e89826f 100644 --- a/.chezmoitemplates/keybindings.json +++ b/.chezmoitemplates/keybindings.json @@ -1,4 +1,28 @@ // Place your key bindings in this file to override the defaults +{{ if ne .chezmoi.os "darwin"}} +[ + { + "key": "cmd+d", + "command": "editor.action.duplicateSelection", + "when": "editorTextFocus" + }, + { + "key": "cmd+shift+/", + "command": "editor.action.blockComment", + "when": "editor.hasSelection" + }, + { + "key": "alt+/", + "command": "workbench.action.togglePanel", + "when": "editorTextFocus" + }, + { + "key": "alt+shift+\\", + "command": "workbench.action.terminal.new" + } +] +{{ end }} +{{ if .chezmoi.os "linux" }} [ { "key": "ctrl+d", @@ -20,3 +44,4 @@ "command": "workbench.action.terminal.new" } ] +{{ end }} \ No newline at end of file