docs: update prompt history keybinding docs
- commit
- fd78dcb05341eef6002bf0a03a8e5f1f64fd34d1
- author
- patriceckhart · · 2026-07-02 05:10 UTC
- parent
- 2881f0d
- signature
- unsigned
3 files · +5 -6
M README.md +2 -2
| @@ -657,14 +657,14 @@ Type `@` followed by a filter string to narrow the list (e.g. `@read` shows only | |||
| 657 | 657 | | `alt+left`, `alt+right` | Jump one word back or forward. | | |
| 658 | 658 | | `ctrl+u`, `ctrl+k` | Delete to start or end of line. | | |
| 659 | 659 | | `ctrl+w`, `alt+backspace` | Delete the previous word. | | |
| 660 | - | | `up`, `down` (editor non-empty) | Cycle through prompt history. | | |
| 660 | + | | `up`, `down` | Move within multi-line input. At the top edge, `up` recalls previous prompts and `down` moves forward through prompt history. | | |
| 661 | 661 | ||
| 662 | 662 | ### Chat scroll | |
| 663 | 663 | ||
| 664 | 664 | | Key | Action | | |
| 665 | 665 | |---|---| | |
| 666 | 666 | | `pgup`, `pgdn` | Scroll one page up or down. | | |
| 667 | - | | `up`, `down` (editor empty) | Scroll three lines up or down. This is how the mouse wheel reaches the scroll logic on most terminals. | | |
| 667 | + | | `up`, `down` (editor empty, not browsing prompt history) | Scroll three lines up or down. This is how the mouse wheel reaches the scroll logic on most terminals. | | |
| 668 | 668 | ||
| 669 | 669 | ## Extensions | |
| 670 | 670 | ||
| @@ -657,14 +657,14 @@ Type `@` followed by a filter string to narrow the list (e.g. `@read` shows only | |||||
| 657 | | `alt+left`, `alt+right` | Jump one word back or forward. | | 657 | | `alt+left`, `alt+right` | Jump one word back or forward. | | ||
| 658 | | `ctrl+u`, `ctrl+k` | Delete to start or end of line. | | 658 | | `ctrl+u`, `ctrl+k` | Delete to start or end of line. | | ||
| 659 | | `ctrl+w`, `alt+backspace` | Delete the previous word. | | 659 | | `ctrl+w`, `alt+backspace` | Delete the previous word. | | ||
| 660 | - | | `up`, `down` (editor non-empty) | Cycle through prompt history. | | 660 | + | | `up`, `down` | Move within multi-line input. At the top edge, `up` recalls previous prompts and `down` moves forward through prompt history. | |
| 661 | 661 | ||||
| 662 | ### Chat scroll | 662 | ### Chat scroll | ||
| 663 | 663 | ||||
| 664 | | Key | Action | | 664 | | Key | Action | | ||
| 665 | |---|---| | 665 | |---|---| | ||
| 666 | | `pgup`, `pgdn` | Scroll one page up or down. | | 666 | | `pgup`, `pgdn` | Scroll one page up or down. | | ||
| 667 | - | | `up`, `down` (editor empty) | Scroll three lines up or down. This is how the mouse wheel reaches the scroll logic on most terminals. | | 667 | + | | `up`, `down` (editor empty, not browsing prompt history) | Scroll three lines up or down. This is how the mouse wheel reaches the scroll logic on most terminals. | |
| 668 | 668 | ||||
| 669 | ## Extensions | 669 | ## Extensions | ||
| 670 | 670 | ||||
M packages/agent/modes/help.go +1 -1
| @@ -23,7 +23,7 @@ var helpKeyRows = [][2]string{ | |||
| 23 | 23 | {"ctrl+l", "redraw the screen"}, | |
| 24 | 24 | {"ctrl+o", "expand / collapse long tool results"}, | |
| 25 | 25 | {"pgup / pgdn", "scroll the chat one page up / down"}, | |
| 26 | - | {"up / down", "move within multi-line input - scroll chat at input edge"}, | |
| 26 | + | {"up / down", "move in input, browse prompt history at top edge, scroll chat when empty"}, | |
| 27 | 27 | } | |
| 28 | 28 | ||
| 29 | 29 | // renderHelpBlock builds the friendly /help view. Uses the shared | |
| @@ -23,7 +23,7 @@ var helpKeyRows = [][2]string{ | |||||
| 23 | {"ctrl+l", "redraw the screen"}, | 23 | {"ctrl+l", "redraw the screen"}, | ||
| 24 | {"ctrl+o", "expand / collapse long tool results"}, | 24 | {"ctrl+o", "expand / collapse long tool results"}, | ||
| 25 | {"pgup / pgdn", "scroll the chat one page up / down"}, | 25 | {"pgup / pgdn", "scroll the chat one page up / down"}, | ||
| 26 | - | {"up / down", "move within multi-line input - scroll chat at input edge"}, | 26 | + | {"up / down", "move in input, browse prompt history at top edge, scroll chat when empty"}, |
| 27 | } | 27 | } | ||
| 28 | 28 | ||||
| 29 | // renderHelpBlock builds the friendly /help view. Uses the shared | 29 | // renderHelpBlock builds the friendly /help view. Uses the shared | ||
M packages/agent/modes/interactive.go +2 -3
| @@ -429,9 +429,8 @@ type Interactive struct { | |||
| 429 | 429 | parkedTotal int | |
| 430 | 430 | ||
| 431 | 431 | // inputHistoryIndex is -1 when not browsing history. When the | |
| 432 | - | // editor is empty, Left/Right can walk previous user prompts for | |
| 433 | - | // quick manual testing without stealing normal cursor movement in | |
| 434 | - | // non-empty input. | |
| 432 | + | // editor is empty, Up/Down can walk previous user prompts without | |
| 433 | + | // stealing normal vertical cursor movement in non-empty input. | |
| 435 | 434 | inputHistoryIndex int | |
| 436 | 435 | ||
| 437 | 436 | // lastCtrlC is when the user last pressed ctrl+c. The first press | |
| @@ -429,9 +429,8 @@ type Interactive struct { | |||||
| 429 | parkedTotal int | 429 | parkedTotal int | ||
| 430 | 430 | ||||
| 431 | // inputHistoryIndex is -1 when not browsing history. When the | 431 | // inputHistoryIndex is -1 when not browsing history. When the | ||
| 432 | - | // editor is empty, Left/Right can walk previous user prompts for | 432 | + | // editor is empty, Up/Down can walk previous user prompts without |
| 433 | - | // quick manual testing without stealing normal cursor movement in | 433 | + | // stealing normal vertical cursor movement in non-empty input. |
| 434 | - | // non-empty input. | |||
| 435 | inputHistoryIndex int | 434 | inputHistoryIndex int | ||
| 436 | 435 | ||||
| 437 | // lastCtrlC is when the user last pressed ctrl+c. The first press | 436 | // lastCtrlC is when the user last pressed ctrl+c. The first press | ||