Files
owlen/crates/owlen-tui/keymap_emacs.toml
vikingowl 3722840d2c feat(tui): add Emacs keymap profile with runtime switching
- Introduce built‑in Emacs keymap (`keymap_emacs.toml`) alongside existing Vim layout.
- Add `ui.keymap_profile` and `ui.keymap_path` configuration options; persist profile changes via `:keymap` command.
- Expose `KeymapProfile` enum (Vim, Emacs, Custom) and integrate it throughout state, UI rendering, and help overlay.
- Extend command registry with `keymap.set_vim` and `keymap.set_emacs` to allow profile switching.
- Update help overlay, command specs, and README to reflect new keybindings and profile commands.
- Adjust `Keymap::load` to honor preferred profile, custom paths, and fallback logic.
2025-10-18 04:51:39 +02:00

80 lines
1.2 KiB
TOML

[[binding]]
mode = "normal"
keys = ["Alt+M"]
command = "model.open_all"
[[binding]]
mode = "normal"
keys = ["Ctrl+Alt+L"]
command = "model.open_local"
[[binding]]
mode = "normal"
keys = ["Ctrl+Alt+C"]
command = "model.open_cloud"
[[binding]]
mode = "normal"
keys = ["Ctrl+Alt+A"]
command = "model.open_available"
[[binding]]
mode = "normal"
keys = ["Alt+x"]
command = "mode.command"
[[binding]]
mode = "editing"
keys = ["Alt+x"]
command = "mode.command"
[[binding]]
mode = "normal"
keys = ["Ctrl+Space"]
command = "palette.open"
[[binding]]
mode = "normal"
keys = ["Alt+O"]
command = "focus.next"
[[binding]]
mode = "normal"
keys = ["Alt+Shift+O"]
command = "focus.prev"
[[binding]]
mode = "normal"
keys = ["Alt+1"]
command = "focus.files"
[[binding]]
mode = "normal"
keys = ["Alt+2"]
command = "focus.chat"
[[binding]]
mode = "normal"
keys = ["Alt+3"]
command = "focus.code"
[[binding]]
mode = "normal"
keys = ["Alt+4"]
command = "focus.thinking"
[[binding]]
mode = "normal"
keys = ["Alt+5"]
command = "focus.input"
[[binding]]
mode = "editing"
keys = ["Ctrl+Enter"]
command = "composer.submit"
[[binding]]
mode = "normal"
keys = ["Ctrl+Alt+D"]
command = "debug.toggle"