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
74 { key: "mod+j", command: "terminal.toggle" },74 { key: "mod+j", command: "terminal.toggle" },
75 { key: "mod+d", command: "terminal.split", when: "terminalFocus" },75 { key: "mod+d", command: "terminal.split", when: "terminalFocus" },
76 { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },76 { key: "mod+shift+d", command: "terminal.new", when: "terminalFocus" },
77 { key: "mod+shift+o", command: "chat.new" },
78 { key: "mod+o", command: "editor.openFavorite" },
77];79];
78 80
79function mergeWithDefaultKeybindings(custom: KeybindingsConfig): KeybindingsConfig {81function mergeWithDefaultKeybindings(custom: KeybindingsConfig): KeybindingsConfig {