mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-22 01:02:16 +00:00
feat(tui,coding-agent): add ctrl+b/ctrl+f cursor navigation keybindings (#1053)
This commit is contained in:
parent
af4cf5f4ef
commit
902473797d
2 changed files with 4 additions and 4 deletions
|
|
@ -21,8 +21,8 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, etc.
|
||||||
|--------|---------|-------------|
|
|--------|---------|-------------|
|
||||||
| `cursorUp` | `up` | Move cursor up |
|
| `cursorUp` | `up` | Move cursor up |
|
||||||
| `cursorDown` | `down` | Move cursor down |
|
| `cursorDown` | `down` | Move cursor down |
|
||||||
| `cursorLeft` | `left` | Move cursor left |
|
| `cursorLeft` | `left`, `ctrl+b` | Move cursor left |
|
||||||
| `cursorRight` | `right` | Move cursor right |
|
| `cursorRight` | `right`, `ctrl+f` | Move cursor right |
|
||||||
| `cursorWordLeft` | `alt+left`, `ctrl+left`, `alt+b` | Move cursor word left |
|
| `cursorWordLeft` | `alt+left`, `ctrl+left`, `alt+b` | Move cursor word left |
|
||||||
| `cursorWordRight` | `alt+right`, `ctrl+right`, `alt+f` | Move cursor word right |
|
| `cursorWordRight` | `alt+right`, `ctrl+right`, `alt+f` | Move cursor word right |
|
||||||
| `cursorLineStart` | `home`, `ctrl+a` | Move to line start |
|
| `cursorLineStart` | `home`, `ctrl+a` | Move to line start |
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,8 @@ export const DEFAULT_EDITOR_KEYBINDINGS: Required<EditorKeybindingsConfig> = {
|
||||||
// Cursor movement
|
// Cursor movement
|
||||||
cursorUp: "up",
|
cursorUp: "up",
|
||||||
cursorDown: "down",
|
cursorDown: "down",
|
||||||
cursorLeft: "left",
|
cursorLeft: ["left", "ctrl+b"],
|
||||||
cursorRight: "right",
|
cursorRight: ["right", "ctrl+f"],
|
||||||
cursorWordLeft: ["alt+left", "ctrl+left", "alt+b"],
|
cursorWordLeft: ["alt+left", "ctrl+left", "alt+b"],
|
||||||
cursorWordRight: ["alt+right", "ctrl+right", "alt+f"],
|
cursorWordRight: ["alt+right", "ctrl+right", "alt+f"],
|
||||||
cursorLineStart: ["home", "ctrl+a"],
|
cursorLineStart: ["home", "ctrl+a"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue