From a310585195484b8420f14cff3e736c604f47c11e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 19 Nov 2026 22:03:11 -0300 Subject: core, docs, test: a pane that answers for another is docked to it, `Pane.docked_to`, and the tag word that lets it go is `Undock`, no longer `attached_to` and `Unattach` (P18 and P28, the user's rulings: *attach* is a client joining a session now; `Undock` confirmed; no alias, so `Unattach` is an unknown word after this change): the field `attached_to` on 24 lines of seven files (core/panes.zig's Pane field and its one use; views.zig's PaneView field and its name in `pane_fields`; dump.zig, Handover.zig, layout.zig, Query.zig, builtins.zig) and docs/next-daemon.md's mention; the builtin `Unattach` (its struct in core/builtins.zig with its help line and its refusal, "Undock: not docked to a pane"; its null key in core/config.zig; the frozen query pane's tag tail in core/tagline.zig with its comment; layout.zig's test that runs it; Query.zig's comment, with its two lines' "attached"/"unattached" where they mean docked); the builtin lists docs/typ/builtins-tui.json and builtins-gui.json (the line `zig build builtins-json` writes, checked byte for byte against the generator for both platforms); the one line in the changelog's Unreleased; docs/search-proto-converge.md's three mentions; the seven goldens that show a frozen query pane's tag (find, fsearch, grep, lookrange, lsp-client, lsprelpath, stepgrain: nine lines, each `Save Unattach Del` -> `Save Undock Del` and nothing else, edited by hand and passing as they are, not regenerated); the other prose "attach"/"attachment" meaning docked and the functions `attachFrom` and `testAttachment` stay (not ruled; listed in the report); a dump written before this change restores its docked panes undocked, with a note (walk.load lets an unknown field go); the semantics word does not move (38b5ae573b965550 before and after: the tape's shape names neither the builtin nor the field); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 (--replay 20 seeds, 0 failures), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; msg's cursor column flaked once and passed again in the run), the soak (--clients 5) diverged 0, unequal 0, deltas wrong 0, quiet checks 618/0, 835/0, 771/0, stops unlisted 0, the corpus through a client 22 scenes each frame the same, no leak; gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base); the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0; the cheatsheet (one page), the book (77 pages) and the site build, Undock in the glossary; the frame and perf gate PASS (77/77 frames byte-identical in Debug, the alternated window corpus2x +0.041% against a 0.4% threshold, the 97 per-operation counts within 0.1%, the largest +0.0197%); under a load of 4 to 37 Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/snapshots/find.golden | 4 ++-- test/snapshots/fsearch.golden | 2 +- test/snapshots/grep.golden | 2 +- test/snapshots/lookrange.golden | 2 +- test/snapshots/lsp-client.golden | 2 +- test/snapshots/lsprelpath.golden | 4 ++-- test/snapshots/stepgrain.golden | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index 6c3bc950..4825d1dc 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -30,7 +30,7 @@ |32: /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Del |33: 1 beta body == snap promoted grid=120x41 cursor=7,33 -|22: +Search 2/3 Save Unattach Del +|22: +Search 2/3 Save Undock Del |32: /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Term Collapse Follow Del == snap nomatch grid=120x41 cursor=11,14 |13: ^ +Search 0 Del @@ -43,7 +43,7 @@ == snap cancel grid=120x41 cursor=7,3 |13: |14: -|22: +Search 2/3 Save Unattach Del +|22: +Search 2/3 Save Undock Del |23: Find zqm |24: zqmark-alpha.txt |25: sub/ZQMARK-beta.txt diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index e923cb58..71a9900a 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -71,7 +71,7 @@ |8: 6 MARK b |9: ^ +Search 2/3 Del == snap landed grid=180x31 cursor=10,8 -|9: +Search 2/3 Save Unattach Del +|9: +Search 2/3 Save Undock Del == snap n grid=180x31 cursor=10,8 |7: 9 l9 |8: 10 MARK c diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden index 30c8612c..07f88ba8 100644 --- a/test/snapshots/grep.golden +++ b/test/snapshots/grep.golden @@ -36,7 +36,7 @@ |14: 1 deep |15: 2 TARGET inside sub == snap opened-hit grid=180x31 cursor=12,15 -|9: +Search 3/3 Save Unattach Del +|9: +Search 3/3 Save Undock Del |13: /tmp/pardes-snap/grep/cwd/sub/b.txt Save Term Collapse Follow Del == snap nomatch grid=180x31 cursor=11,15 |14: ^ +Search 0+ Del diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index 92b619e4..c677fb8f 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -69,7 +69,7 @@ |15: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-149 #f5f7ee,#3c614a, |16: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-149 #f5f7ee,#0d1410, == snap hit1 grid=150x31 cursor=17,15 -|21: +Search 2/2 Save Unattach Del +|21: +Search 2/2 Save Undock Del |22: /NEEDLE |23: r.txt:7:4 gg NEEDLE gg |24: r.txt:8:6 hhhh NEEDLE diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index 44b16309..42c378d1 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -26,5 +26,5 @@ |19: /tmp/pardes-snap/lsp-client/cwd/+Preview Del |20: 1 == snap gr-opened grid=100x25 cursor=21,6 -|13: +Search 2/3 Save Unattach Del +|13: +Search 2/3 Save Undock Del == snap gr-back grid=100x25 cursor=21,7 diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index 36f411ef..964f0286 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -29,7 +29,7 @@ | 1 == snap abslook grid=100x35 cursor=21,27 |3: 1 const shade = @import("../shade.zig"); -|16: +Search 1/2 Save Unattach Del +|16: +Search 1/2 Save Undock Del |26: /tmp/pardes-snap/lsprelpath/cwd/shade.zig Save Term Collapse Follow TreeContext Def Refs Del |27: 1 pub const Shade = enum { |28: 2 verdigris, @@ -103,7 +103,7 @@ | 1 == snap sublook grid=100x35 cursor=20,28 |3: 1 const tint = @import("inner/tint.zig"); -|16: +Search 1/2 Save Unattach Del +|16: +Search 1/2 Save Undock Del |26: /tmp/pardes-snap/lsprelpath/cwd/sub/inner/tint.zig Save Term Collapse Follow TreeContext Def Refs |27: Del |28: 1 pub const Tint = enum { diff --git a/test/snapshots/stepgrain.golden b/test/snapshots/stepgrain.golden index 1b7d3245..9af17689 100644 --- a/test/snapshots/stepgrain.golden +++ b/test/snapshots/stepgrain.golden @@ -84,5 +84,5 @@ |18: 0-0 d,#608269, 1-149 d,#0d1410, |22: 0-1 d,#496656, 2-32 #b2c3b8,#1d2824, 33-46 #d3b0d9,#1d2824, 47-149 #b2c3b8,#1d2824, == snap blank-opened grid=150x31 cursor=7,23 -|12: +Search 1/1 Save Unattach Del +|12: +Search 1/1 Save Undock Del |22: /tmp/pardes-snap/stepgrain/cwd/two words.txt Save Term Collapse Follow Del -- cgit v1.3