From 4e516e22da8354b89ad9912cc458a13e065f0f7a Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Wed, 17 Sep 2025 11:06:54 +0200 Subject: [PATCH] feat(code-server): add tracking of custom keybindings for code-server (#43) Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/43 --- .gitignore | 1 + .../share/code-server/User/keybindings.json | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .local/share/code-server/User/keybindings.json diff --git a/.gitignore b/.gitignore index 9175270..f296ae8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ !.local/share/code-server/User/ !.local/share/code-server/User/settings.json !.local/share/code-server/User/extensions.json +!.local/share/code-server/User/keybindings.json !.local/share/VSCodium/ !.local/share/VSCodium/User/ !.local/share/VSCodium/User/settings.json diff --git a/.local/share/code-server/User/keybindings.json b/.local/share/code-server/User/keybindings.json new file mode 100644 index 0000000..9713576 --- /dev/null +++ b/.local/share/code-server/User/keybindings.json @@ -0,0 +1,31 @@ +// Place your key bindings in this file to override the defaults +[ + { + "key": "alt+oem_5", + "command": "workbench.view.explorer", + "when": "viewContainer.workbench.view.explorer.enabled" + }, + { + "key": "ctrl+shift+e", + "command": "-workbench.view.explorer", + "when": "viewContainer.workbench.view.explorer.enabled" + }, + { + "key": "alt+1", + "command": "workbench.action.findInFiles" + }, + { + "key": "ctrl+shift+f", + "command": "-workbench.action.findInFiles" + }, + { + "key": "alt+2", + "command": "workbench.view.debug", + "when": "viewContainer.workbench.view.debug.enabled" + }, + { + "key": "ctrl+shift+d", + "command": "-workbench.view.debug", + "when": "viewContainer.workbench.view.debug.enabled" + } +] \ No newline at end of file