summaryrefslogtreecommitdiff
path: root/src/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 10:05:01 -0300
committerGabriel Schneider <[email protected]>2026-10-24 10:14:38 -0300
commit873f81ccb1449119846de8d4e6e0e8899236100a (patch)
tree66ad8ca2e913e4a954be947c54aa0b31a0c9fdb0 /src/panes.zig
parent19c83c90ebed4817acd7a12d4d225f5af0957bc1 (diff)
downloadpardes-873f81ccb1449119846de8d4e6e0e8899236100a.tar.gz
pardes-873f81ccb1449119846de8d4e6e0e8899236100a.zip
Search converge 1/6: attached panes, a pane under its owner on the owner's rows alone, fixed height, moving, folding and closing with it
Diffstat (limited to 'src/panes.zig')
-rw-r--r--src/panes.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panes.zig b/src/panes.zig
index b535993e..14df07e9 100644
--- a/src/panes.zig
+++ b/src/panes.zig
@@ -101,6 +101,13 @@ 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
+ /// 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
+ /// gone, or a pane no longer right under its owner's group, leaves it
+ /// an ordinary pane (layout.keepGroups).
+ attached_to: ?u32 = null,
cols: u16,
rows: u16,
greet: bool = false,