History

Add configurable shortcuts for new chat and open-in-editor

- add `chat.new` and `editor.openFavorite` to keybinding contracts and server defaults - use shared keybinding matching in sidebar/chat view instead of hardcoded Cmd/Ctrl combos - document new commands/defaults and extend server/web keybinding tests

Julius Marminge committed 9 months ago

Commit ef4ce2e1 parent 61e9ba48 files · +122 −41Browse files

Showing the changes to apps/server/src/wsServer.ts (1 of 8 files). Show all

Unified · Split

apps/server/src/wsServer.ts+2−0
@@ -74,6 +74,8 @@ const DEFAULT_KEYBINDINGS: KeybindingsConfig = [ · 73 unmodified lines
7474 { key: "mod+j", command: "terminal.toggle" },
7575 { key: "mod+d", command: "terminal.split", when: "terminalFocus" },
7676 { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },
77+ { key: "mod+shift+o", command: "chat.new" },
78+ { key: "mod+o", command: "editor.openFavorite" },
7779 ];
7880
7981 function mergeWithDefaultKeybindings(custom: KeybindingsConfig): KeybindingsConfig {