summaryrefslogtreecommitdiff
path: root/core/Store.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 15:13:18 -0300
committerGabriel Schneider <[email protected]>2026-11-20 19:20:33 -0300
commite9a641ee2c743fec2fe2505d2e11c96fa36767b8 (patch)
tree0475bbf328bf21e41b573c0cd95684d8a7336741 /core/Store.zig
parent4887578ce82518c84ef76f7ee03748911f4f9933 (diff)
downloadpardes-e9a641ee2c743fec2fe2505d2e11c96fa36767b8.tar.gz
pardes-e9a641ee2c743fec2fe2505d2e11c96fa36767b8.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Store.zig')
-rw-r--r--core/Store.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Store.zig b/core/Store.zig
index 82e3c5bf..ac9387cb 100644
--- a/core/Store.zig
+++ b/core/Store.zig
@@ -28,7 +28,7 @@ pub const Closed = struct {
/// brought back, it takes them from that pane alone.
gainer: u32,
below: bool,
- /// The pane it was attached to, by serial (0 none).
+ /// The pane it was docked to, by serial (0 none).
owner: u32,
rows: u16,
/// What its Panes row shows: its file, command or directory.
@@ -78,7 +78,7 @@ pub fn clone(s: *const Store, gpa: std.mem.Allocator) Store {
// ---- the closed panes ----
/// Pane `id`, about to close, kept: what it was (a one-pane Dump) and
-/// where (its column, its rows, what it was attached to). Null for a pane
+/// where (its column, its rows, what it was docked to). Null for a pane
/// that is no pane of the user's: a query pane, a preview, one carried to
/// another window (`away`), one made and refused in the same step (never
/// announced), or one whose dump fails or is too big. `close` finishes it
@@ -186,7 +186,7 @@ pub fn closedBySerial(s: *const Store, serial: u32) ?*Closed {
}
/// Closed pane `serial` of this session made again, where it was: beside
-/// the pane its rows went to, taking them from that pane alone (attached
+/// the pane its rows went to, taking them from that pane alone (docked
/// again to its owner when that is still open), else placed as a new pane
/// from `from`. False when it is not this session's, or its dump will not
/// load; the keyboard on it otherwise.
@@ -204,7 +204,7 @@ pub fn reopen(s: *Store, p: *Pardes, serial: u32, from: usize) bool {
const owner = if (place.owner != 0) p.paneBySerial(place.owner) else null;
const gainer = if (place.gainer != 0) p.paneBySerial(place.gainer) else null;
const placed = if (owner) |o|
- layout.attachFrom(p, o, free, place.rows, o)
+ layout.dockFrom(p, o, free, place.rows, o)
else if (gainer) |g|
layout.giveBack(p, free, g, place.below, place.rows)
else