feat: make centered-master birth the first side-stack pane on the correct side #106

Closed
opened 2026-04-28 01:57:49 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-04-28 01:57:49 +00:00

Problem

In the simplest centered-master case (n = m = 1), the first side-stack pane has an obvious semantic side. That pane should be born on the correct side first, with only local size correction afterward.

Blocked by: #101, #102

Proposed solution

Implement a layout-aware explicit new-pane path for the centered-master 1 -> 2 transition (the default m = 1 case). The first frame should already place the new pane in the right-side stack position.

Keep later parity and side-balance transitions out of scope for this issue.

Context

This is the easy centered-master case and should be separated from the harder cases where the left stack first appears or later parity changes rebalance both side columns. External precedent from tmux-tiling-revamped is to rebuild the whole main-center layout after a split rather than birth the pane semantically.

Acceptance notes

  • 1 -> 2 should not flash through a wrong-branch birth.
  • Small width correction afterward is acceptable.
  • Preserve append-order semantics.

Alternatives considered

  • Accept full reprojection even for the trivial first side-stack case.
  • Combine this with later centered-master parity-transition work, making the issue much less tractable.
## Problem In the simplest `centered-master` case (`n = m = 1`), the first side-stack pane has an obvious semantic side. That pane should be born on the correct side first, with only local size correction afterward. Blocked by: #101, #102 ## Proposed solution Implement a layout-aware explicit `new-pane` path for the `centered-master` `1 -> 2` transition (the default `m = 1` case). The first frame should already place the new pane in the right-side stack position. Keep later parity and side-balance transitions out of scope for this issue. ## Context This is the easy `centered-master` case and should be separated from the harder cases where the left stack first appears or later parity changes rebalance both side columns. External precedent from `tmux-tiling-revamped` is to rebuild the whole `main-center` layout after a split rather than birth the pane semantically. ## Acceptance notes - `1 -> 2` should not flash through a wrong-branch birth. - Small width correction afterward is acceptable. - Preserve append-order semantics. ## Alternatives considered - Accept full reprojection even for the trivial first side-stack case. - Combine this with later centered-master parity-transition work, making the issue much less tractable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/tmux-mosaic#106
No description provided.