From e9a641ee2c743fec2fe2505d2e11c96fa36767b8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 20 Nov 2026 15:13:18 -0300 Subject: core, docs: the docking vocabulary, the family the rename of attached_to to docked_to left (P37): layout.attachFrom -> layout.dockFrom (its five callers: Query.zig x2, Store.zig, its tests), testAttachment -> testDocking, Query.zig's local attached -> docked, the section "Attached panes" -> "Docked panes" (and the three comments that name it), and "attached", "attachment(s)", "unattached", "Attach new pane", "detaches it" where a pane is docked to a pane -> "docked", "docked pane(s)", "undocked", "Dock new pane", "undocks it", through core/layout.zig (two test names with it), core/Handover.zig, core/Store.zig, core/Query.zig, comments in core/panes.zig (4) and core/builtins.zig (2), docs/next-drag.md, docs/search-proto-converge.md and docs/next-daemon.md (1); every attach of a client to a session stays, as do the search prototype's name "attached" and its setting SearchPlace attached|column (docs/search-proto-converge.md:18, :134: names of the past) and the changelog's past entries; no behaviour changes; gate on the stack through this change and the docking vocabulary (load 4-32): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144 (tty boot: msg failed once at load 32 and passed alone), replicas --clients 5 and --bytes --clients 5: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak; the semantics word a73794ff9e03f814 as on merge40; daemon.py --far, --games, --window-clients pass, plain fails 2 of 4 at "client C agrees with a shell's output" (a timeout), as merge40's build does 3 of 6; the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x +0.054% (noise 0.054%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,720 and render on medium 11,454,636, merge40's gate 10,039,703 and 11,454,619) Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- core/panes.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/panes.zig') diff --git a/core/panes.zig b/core/panes.zig index 68304437..174af241 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -147,10 +147,10 @@ pub const Pane = struct { vweight: f32 = 1, /// A folded pane keeps its expansion weight, but occupies only its tag row. collapsed: bool = false, - /// The serial of the pane this one is attached to, its owner: a query + /// The serial of the pane this one is docked to, its owner: a query /// pane or its +Preview sits right under its owner in the owner's /// column, takes its rows from the owner alone, and moves, folds and - /// closes with it (layout.zig, "Attached panes"). An owner that is + /// closes with it (layout.zig, "Docked panes"). An owner that is /// gone, or a pane no longer right under its owner's group, leaves it /// an ordinary pane (layout.keepGroups). docked_to: ?u32 = null, @@ -1476,14 +1476,14 @@ pub fn paneDir(pane: *const Pane) []const u8 { pub fn removePane(p: *Pardes, id: usize, to: ?usize) error{OutOfMemory}!void { const v = p.view(); const pane = p.panes[id] orelse return; - // What is attached to it closes with it, first, each giving its rows + // What is docked to it closes with it, first, each giving its rows // back to it: then its rows, theirs among them, go where a pane's go. for (0..p.panes.len) |k| if (p.panes[k]) |other| if (k != id and other.docked_to == pane.serial) { if (layout.ownerOf(p, k) != id) continue; try p.removePane(k, id); layout.compute(p); }; - // An attachment's rows go back to its owner and nobody else. + // A docked pane's rows go back to its owner and nobody else. const owner = layout.ownerOf(p, id); const place = layout.findPane(p, id); const emptied = if (place) |f| (if (v.cols[f.col].n == 1) f.col else null) else null; -- cgit v1.3