diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 14:19:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 14:27:26 -0300 |
| commit | 4062e54f04ec6489a6624141df6620d89fe8de27 (patch) | |
| tree | 069bee79dc2bac21e3117e20991e80a8ff5f2563 /dev/gui/gui.zig | |
| parent | 600f2d071a1e78fa9d3af529395efcf803544fb5 (diff) | |
| download | pardes-4062e54f04ec6489a6624141df6620d89fe8de27.tar.gz pardes-4062e54f04ec6489a6624141df6620d89fe8de27.zip | |
prompt: C-r's history has the band's cursor like any list (UX D5): `▶` and the selection on its newest line holding the field, Down and C-n, Up and C-p move it to the next line it shows with the field kept as typed, Enter takes the line under it: S2's 07c showed the rows `pub` and `self` with no cursor row (both sizes); THE CAUSE (core/Prompt.zig historyStep): a row was `on` only when it was the line Up had recalled into the field (`recall`), so with the field as typed no row was, and Up and Down, the only keys that moved anything, rewrote the field and with it the filter the rows are made by; THE FIX: `recall` is the line the keys are on, in the field when Up or Down brought it with the history rolled up (as before), under the history's cursor when it is unrolled (historyAt: that line, else the newest holding the field); unrolled, Down/C-n and Up/C-p set it to the next older or newer line among the rows shown, the field untouched, and Enter puts the line under the cursor in the field, runs it live and goes on as Enter does (commit, or `:`'s run); no line holding the field (`no line holds it`): no cursor, Enter takes the field; no new state (the dump and the digest as they were); DECISIONS: C-p moves the cursor while the history is unrolled, so a pipe prompt's C-p (run a command that is no known filter) wants C-r first; the cursor reaches the 11 rows shown (a ring keeps 16 lines); TEST FIRST: Prompt.zig "C-r's history has the band's cursor like any list ..." fails on the base at its first cursor check (no row on); a user hit it at every C-r
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'dev/gui/gui.zig')
0 files changed, 0 insertions, 0 deletions
