From a3e07c437ed6f94f2eda5cfb5e50d2728a747aad Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 8 Nov 2026 22:05:02 -0300 Subject: helix: hxparity's pty run parked its cursor at (0,0) but left the view where tty mode had it, at the live grid's bottom, so zj there scrolled nothing and scrolloff snapped the cursor to row 13 where the file run's went to 4; the harness now lets the view follow the parked cursor (ensureCursorVisible, the state a real gg reaches: the same 738 results), zj-snaps-cursor passes, and the seven viewport waivers that only recorded the stranded view go (zj-snaps-cursor, zj-noop-in-band, zk-bottom-snap, sticky-view-scroll, sticky-view-then-move, sticky-view-ignores, view-z-not-sticky); helix-keys.md's parity waivers say so Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/helix-keys.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/helix-keys.md b/docs/helix-keys.md index 3e2d0ebb..4e543bbb 100644 --- a/docs/helix-keys.md +++ b/docs/helix-keys.md @@ -407,16 +407,20 @@ Files (all in `test/hxcases/`): registers of one value per range, `sel-regex-caret` and `sel-regex-dot-newline` when `s`/`S` began searching line by line. - `parity.jsonl` — 80 further cases, used only by the parity gate below. -- `parity-waivers.jsonl` — 19 named exemptions for the parity gate, in three +- `parity-waivers.jsonl` — 12 named exemptions for the parity gate, in three classes: one deliberate pardes binding (`ctrl-b-page`, since `Ctrl-b` IS the - tty toggle), eight pty VIEWPORT divergences (a terminal's view cannot scroll - below the vt's live grid bottom, so the cursor snaps into a different - scrolloff band — no text differs), and five case texts a pty cannot hold - verbatim (a literal TAB the emulator expands, a file with no trailing - newline, an all-whitespace last row the dump trims). One more, + tty toggle), five pty VIEWPORT divergences (a page down from the top: a + terminal's view cannot scroll below the vt's live grid, so the cursor snaps + into a different scrolloff band — no text differs), and five case texts a + pty cannot hold verbatim (a literal TAB the emulator expands, a file with no + trailing newline, an all-whitespace last row the dump trims). One more, `dot-append-count`: `a` at a file's end grows it by a newline (helix append_mode), which a terminal's text, not the editor's to grow, does not. - The sticky-view cases join the viewport class. + The pty run parks its cursor at (0,0) with the view following it, as `gg` + does; seven more viewport waivers (`zj-snaps-cursor`, `zj-noop-in-band`, + `zk-bottom-snap`, the three sticky-view cases, `view-z-not-sticky`) only + recorded a view the harness had left at the grid's bottom, the cursor out + of it, and went when it stopped doing that. - `golf.jsonl` + `golf-goldens.jsonl` — every example on helix-golf (github.com/nik-rev/helix-golf, imported at d78c18c): one case per numbered step of each walkthrough, its keys being the command up to and including -- cgit v1.3