Commit 21406b5
committed
feat: add configurable keybindings via keybindings.json
Replace hardcoded keyboard shortcuts in keymodel.ts with a
data-driven system. Default bindings are defined in
defaultconfig/keybindings.json and users can override them
in ~/.config/waveterm/keybindings.json. The merge logic
preserves defaults while letting users remap or disable
individual commands. A "Keybindings" section is added to
the Wave Config UI for in-app editing. Changes are picked
up automatically via the file watcher.1 parent a4447c1 commit 21406b5
9 files changed
Lines changed: 600 additions & 249 deletions
File tree
- frontend
- app
- store
- view/waveconfig
- preview/mock
- types
- pkg/wconfig
- defaultconfig
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments