| |
|
|
|
|
|
| |
rows, and a scroll moves it by rows (P62, round 3, on the layer's new model where the `Changes` layer's lines are lines of the buffer): a wheel's notch, the glide, PageDown/PageUp, zj/zk, Ctrl-d/u, zt/zz/zb and the margin (`scroll_off` now ROWS) go a row at a time through a line wrapped over many rows and through a long description line of the layer, where the base jumped all of a wrapped line's rows at once (the user, 2026-11-23: "the scroll view jumps around near deleted lines on the diff view"; one-row deleted lines were cured by the layer's second step, a wrapped one was not): TESTS FIRST: core/jj.zig "a view scrolls by rows through a line wrapped over 12 rows and a change's description wrapped over several (a line of the layer): ..." (a notch is one row down the whole text and back, the notches the text's rows exactly; PageDown/PageUp a page of rows; zj/zk one; a held j and k keep the cursor's row `scroll_off` rows inside the body) failing on the base at notch 21 (line 20's 12 rows crossed at once), and "a client wheels its session's view a row a notch into a change's description wrapped over several rows ..., agreeing at every notch; a client joined over that view loads its row"; kept from round 1: core/replica.zig's join over a view scrolled into a wrapped line (with a rollback and a dump) and the explorer of a view's rows (30 seeds), dev/gui's glide a row a notch; THE CHANGE, taken from pardes-row-scroll (`xrxmqlnw`) and -2 (`xxzmwnvq`) without their ghost-row "blocks" (a block is now just a line's own rows): `File.State.scroll_row` and `views.PaneView.scroll_row` in the generic walk (digested, dumped, copied; a dump of 34 loads at its lines' first rows), the wire 35; core/File.zig `Top`, `rowIn`/`rowWalked` (a line's rows as fillBody wraps them, `guideOf` shared), `rowOf`, `lineRows`, `top`/`setTop`, `walkRows`/`walkKnown`, `rowsTo`, `rowsOf` (off the map where it holds the line), `mapFresh`, `scrollRows`, `shownRows` (the geometry laid out first), `show` (a cursor's or a result's row inside the band, the line's rows whole when they fit), `textRowLine`, fillBody's skip to the top's row walked once a geometry (`Pane.top_skip`, derived), the geometry's key with `scroll_row` and stored as what the map was made from; the one-row fact `State.widest` (`Widest`, an upper bound kept by the index's own vector passes `countLines`/`fillLines`) so a view whose lines are each one row walks nothing (`oneRow`: line arithmetic, checked against the walk in Debug); `fitEnd` a vector of printable ASCII at a time; the callers in rows: panes.zig `scrollBy(tab, delta)` and `ensureCursorVisible` (a file's through `File.show`), the wheel and the rail and the edge scroll (mouse.zig), Ctrl-d/u (normal.zig `halfPageMove`), zt/zz/zb, Ctrl-f/b and PgUp/PgDn (Text.zig `scrollViewMove`), Look's reveal and centring, Places' `goTo`/`restore`, Query's `showCurrent`/`caretTo`, the frames' `Region.row` and the glide (dev/glide.zig, the window's `topOf`); test/perf.zig's checks by (line, row) and its seek at a line's first row; Debug in the workspace: core-test 963/1129 (166 skipped), shell-test 1172/1175 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
`Changes`' lanes (Surface.lanes: a strip a level in the gutter's lane cells, decor, not cells) at the rows their lines have in the core, with no lag, no cut to the body and nothing for the rows that left (dev/gui/gui.zig buildDecor's lane loop: the glide's rows, emitScrollRows, and the rail's thumb, paneDecor's lagLines, had the picture's lag; the lanes, added later, never did), so at every scroll (a wheel's notch, Ctrl-d, a page, a touchpad's fraction) the strips leapt to where their lines would be and the text glided in under them, on every frame of the glide (the user's "the animation for the things in the gutter makes them keep jumping", 2026-11-22; in a test window on core/echo.zig with `Changes pardes-installed-20261122..main`, a wheel's three notches: the glide's first frame has the text unmoved and every strip three rows up; a terminal is untouched, its lanes are cells); now `laneDecor` draws a scrolling body's lanes as emitScrollRows draws its rows: the lag less (a glide's offset, else scroll_lag; the lift of held context rows), cut on the CPU to the body under its held rows (the shifted rows' scissor), and the rows that left keep theirs in the gap: the glide remembers each frame's lanes with its cells (`last_lanes`) and moves a kept row's lanes with it as it moves its cells (`above_lanes`, `below_lanes`: a `RowLanes` a row, at most `Lane.levels`, now Lane's own, which jj.levels names), and a touchpad's edge row keeps its own (`scroll_edge_lanes`); remembered by the glide rather than made part of what a row is (a lane in Cell): the frontend's alone, nothing in the core, and nothing added to every cell of every frame for a layer most bodies never show; the scrolling body and the rows that left it are one function each for the rows and the lanes (`scrollBody`, `ScrollBody.leftRow`, `glideLeft`, out of emitScrollRows); at rest a strip is the same rectangle as before; nothing in the core's step changes; looked at mid-glide in the same window: an added line's green ground, a ghost row's red ground, a changed line's word grounds, a description row, Churn's cell after the line number and the `~` past the last line are cells and ride with their rows; Churn's strip on the rail maps the whole file and stands still under the moving thumb, as it should; a frame's cost with three lanes on each of 70 body rows (219 lanes; a scratch bench, glideFrame and buildDecor a frame, `perf stat -e instructions:u` at 2,000 and 6,000 frames, ReleaseFast): at rest 67,744 instructions against the base's 65,644 (+2,100: the lanes copied with the frame, 1,752 bytes, and the strips' loop), a glide's frame 81,472 against 65,832 (+15,640: every strip cut and moved, and the gap's), a frame with a scroll input 1,125,708 against 1,103,120 (+22,588, the measure's 1.1 million the most of it); the text timedemo's frame is 9.38 million (tree4): +0.02% at rest, +0.17% gliding; memory: the glide's kept rows' lanes, 26 bytes a row, 2 bodies' rows a side (3,640 bytes a side at 70 rows), allocated with the kept cells, and the last frame's lanes (8 bytes each) in a list that grows only past the most a frame has had: nothing allocated a frame; no frame later: the strips are computed in the frame they are drawn in, from what the glide already holds; the previous change's test passes; the gate against tree4 (gpu/lane-glide-g, load 5-10): 77/77 frames identical, gui unit-test 1710/1714 (the base's 1709/1713 and this test; its one failure the base's), perfab corpus2x +0.026% (noise 0.092%), pictures identical in all 10 runs, the 121 counts within 0.1% (largest image-frame on small +0.0057%); tui core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped), the base's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
|
|
dev/macos), host_io, file_watch, fonts, the lsp client and Scip, Art, jump_trail, glide and vaxis_input into dev/ (the reorganisation's tree, step 2b): module `dev` (dev/root.zig) beside the core and the runtime, each naming the others; the window wired into it, sketchbook's devices imported as `sketchbook` (its `dev` would be ours); pardes.zig keeps its re-exports (host_io, file_watch, glide, fonts) so every caller reads as before; core-test and shell-test run the devices' test program too, so the same tests run (the ledger, tui and gui); nothing else changes: frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|