mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
feat(tui,coding-agent): add shell-style keybindings alt+b, alt+f, ctrl+d
- Add alt+b/alt+f as alternative bindings for cursorWordLeft/cursorWordRight - Add ctrl+d as alternative binding for deleteCharForward - Fix ctrl+d in custom editor to perform delete when text is present (previously it was always consumed, even with non-empty input) Closes #1043 Co-authored-by: Jason Ish <ish@unx.ca>
This commit is contained in:
parent
5ef79459dc
commit
81be81328c
5 changed files with 16 additions and 7 deletions
|
|
@ -23,8 +23,8 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, etc.
|
|||
| `cursorDown` | `down` | Move cursor down |
|
||||
| `cursorLeft` | `left` | Move cursor left |
|
||||
| `cursorRight` | `right` | Move cursor right |
|
||||
| `cursorWordLeft` | `alt+left`, `ctrl+left` | Move cursor word left |
|
||||
| `cursorWordRight` | `alt+right`, `ctrl+right` | Move cursor word 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 |
|
||||
| `cursorLineEnd` | `end`, `ctrl+e` | Move to line end |
|
||||
| `pageUp` | `pageUp` | Scroll up by page |
|
||||
|
|
@ -35,7 +35,7 @@ Modifier combinations: `ctrl+shift+x`, `alt+ctrl+x`, `ctrl+shift+alt+x`, etc.
|
|||
| Action | Default | Description |
|
||||
|--------|---------|-------------|
|
||||
| `deleteCharBackward` | `backspace` | Delete character backward |
|
||||
| `deleteCharForward` | `delete` | Delete character forward |
|
||||
| `deleteCharForward` | `delete`, `ctrl+d` | Delete character forward |
|
||||
| `deleteWordBackward` | `ctrl+w`, `alt+backspace` | Delete word backward |
|
||||
| `deleteWordForward` | `alt+d`, `alt+delete` | Delete word forward |
|
||||
| `deleteToLineStart` | `ctrl+u` | Delete to line start |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue