diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 21:40:17 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 23:31:32 -0300 |
| commit | 0e9d91dcf8bf42ee6c9b3a777d6cac658b83f97a (patch) | |
| tree | 6d82ca5200d997129aaa898314d5e89bb2bc87e0 /core/Query.zig | |
| parent | 1e8787e0b2eb3eaa4991a5160f6e5c35ba6f132e (diff) | |
| download | pardes-0e9d91dcf8bf42ee6c9b3a777d6cac658b83f97a.tar.gz pardes-0e9d91dcf8bf42ee6c9b3a777d6cac658b83f97a.zip | |
layout, Trail, Pick, look: a new pane goes into free space before it splits a pane: an untouched `+New` is taken, an empty column filled (UX DESIGN J, binding; the user: "the New panes that are empty should be taken over by the previews since doesn't make sense to keep them, this should also apply to empty colums"; p1-02: SPC f f from an empty +New made its landing pane under it and squeezed main.zig from 8 body rows to 3, p1-03: after Enter the +New kept 6 empty rows and the file got 4; at 150x45 a Look from a held main.zig split it and left an empty column empty); THE RULE: free space is an untouched pane (Trail.untouched: a +New never typed into, no undo history, its body empty, still so named, not kept, not folded, and no 9P open holding it: a look or exec open answered with it, exec.leased, or an open of one of its own files, so a script's pane/new and its `look` stay its own) or an empty column; every opening that makes a pane but New and 9P's pane/new looks for it first (layout.placeNew → freeSpace): the asking pane when it is untouched, else the nearest, in its column below it then above, then the columns to its right, nearest first, then to its left; asked from a column's tag, that column alone; an untouched pane is taken (takePane: its place, rows and weight, layout.replacePane; it closes at the step's end, Pardes.unplaced) where its rows hold the new pane's tag and two rows, as every placement leaves; a file taken into it keeps its number (@pN and its 9P state, as Trail.show's step does, the file a revision on), a terminal, kind, listing, output or Zerox twin its own (a shell's spawn and a kind's jobs went to the host by their serial as they were made; a twin's revision is its text's); a jump from an untouched pane opens its reader in its place with no owner word, its trail starting at the file (Trail.reader with no owner); a picker from one previews in it (Pick.hostIn: no pane made), Esc gives it back empty, Enter lands in it, a reading pane whose trail starts with the list word, and S-Enter and C-v there are Enter; a picker from a held pane with no reader previews in the nearest untouched pane, given back on Esc, and Enter makes it the held pane's reader by that number, or makes its landing pane in an empty column; C-v makes a column only with no free space; `Jumps new-pane`, S-Enter, C-s, a command's output, Term, +Help, +Search, a directory, the pager's +Diff go the same way; look.runSearch's 16 MB of room is the gpa's, freed, not the step's arena (core/fuzz.zig's 9P seed 610 under the new placement looked a word twice in one burst of requests, which come between steps, and asked that arena for a 75 MB node); RUN (TEST FIRST): layout.zig "free space first (UX J1)": a held pane's reader takes the +New below, above, right and left of it in that order, each by its number and in its rows, then splits as before, then takes an empty column whole; a jump from a +New, and one under Jumps new-pane, opens in it by its number; a +New typed into and emptied, kept, leased or with a file open over 9P is no free space; a command's output and a Term take a +New (shell-test); Pick.zig: a picker in a +New previews there, Esc, Enter and S-Enter; one from a held pane previews in a +New, Enter makes it the reader, C-v lands in an empty column with no column made; all four fail on the base's placement (the +New left, the landing made) and pass now; ninep/tree.zig's random placements kept every pane its tag and two rows only once a +New too short for the new pane's tag was passed by; ninep/cols.zig's column-tag command and behaviour/placement's look from a pane/new pane kept by the column-tag and 9P-open rules; two older Pick tests count panes after the step's end (the +New the Look took closes then); six tty goldens re-recorded, each the boot layout's +New taken by the pane made (nested's reader of the shell, diffstack's and pagercolor's +Diff, ttyhelp's +Help, look-fd-deep's reader, psearch's +Search, each now in the +New's rows under a shell that keeps all of its own); docs/typ/reference.typ's Placement says it; a user hit the old placement on every opening from or beside an empty +New or column; with the next change on it: core-test 1117/1290 (173 skipped; this change +4 and +1 skipped, the next +1), shell-test 1338/1341 (3 skipped; +5 and +1), pane-test 183/184, behaviour-test 280/280 and --replay 280/280 (the monkey's 20 seeds, 0 failures), process-test 0 of 147 failed (3 skipped, the six goldens moved), term-test 17/17, kitty-test 45/45, load 2.4 to 5.6; the frame and perf gate against a baseline recorded from the installed tree 1e8787e0b2eb (gpu/w2base, then gpu/walkui-W2): 76 of 77 frames byte-identical, frame 63 (a translucent addon picture over its pane) moved by this change: the veil pane takes the empty middle column whole instead of going under the third column's +New, which was typed into; the gui unit-test 1941/1945 (base 1935, no failure the base has not); perfops 121 of 121 within 0.1% (largest open on small per-op +0.0154%); perfab not measured (its pictures differ at frame 63); timedemos INFO text +2.26%, snake -1.46%, pdf +0.23% (spreads 2-3%); no dump layout change, so no fuzz or soak; load 2.9 to 4.8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Query.zig')
0 files changed, 0 insertions, 0 deletions
