mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 13:04:08 +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 |
|
||||
| `cursorDown` | `down` | Move cursor down |
|
||||
| `cursorLeft` | `left` | Move cursor left |
|
||||
| `cursorRight` | `right` | Move cursor right |
|
||||
| `cursorLeft` | `left`, `ctrl+b` | Move cursor left |
|
||||
| `cursorRight` | `right`, `ctrl+f` | Move cursor right |
|
||||
| `cursorWordLeft` | `alt+left`, `ctrl+left`, `alt+b` | Move cursor word left |
|
||||
| `cursorWordRight` | `alt+right`, `ctrl+right`, `alt+f` | Move cursor word right |
|
||||
| `cursorLineStart` | `home`, `ctrl+a` | Move to line start |
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ export const DEFAULT_EDITOR_KEYBINDINGS: Required<EditorKeybindingsConfig> = {
|
|||
// Cursor movement
|
||||
cursorUp: "up",
|
||||
cursorDown: "down",
|
||||
cursorLeft: "left",
|
||||
cursorRight: "right",
|
||||
cursorLeft: ["left", "ctrl+b"],
|
||||
cursorRight: ["right", "ctrl+f"],
|
||||
cursorWordLeft: ["alt+left", "ctrl+left", "alt+b"],
|
||||
cursorWordRight: ["alt+right", "ctrl+right", "alt+f"],
|
||||
cursorLineStart: ["home", "ctrl+a"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue