feat(algorithm): two-pane #47
Labels
No labels
breaking-change
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
skip-release-notes
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/tmux-mosaic#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a
two-panealgorithm — always show the master pane plus one secondary pane. This fits small tmux workspaces and the XMonadTwoPanemental model.Scope
scripts/algorithms/two-pane.shpromoteandresize-mastershould still workAcceptance criteria
@mosaic-algorithm two-paneshows only two panes at a timepromoteswaps the secondary pane into masterresize-master ±Nresizes the master splitOpen question
Should this be "master + focused secondary", or "first two panes only" until explicitly rotated?
Part of #42.
I checked the real XMonad
TwoPanesemantics before we build this.Canonical
TwoPaneis not just "a small split layout"; it really does show only two windows: the master on the left, and on the right either the focused window or the second window in layout order. Extra windows are not laid out.That puts this in the same problem class as
deckfor tmux: tmux pane layouts are non-overlapping split trees, so there is no faithful way to keep exactly two panes visible while other panes in the same window remain hidden but still focusable in the background.So this issue probably needs one of two outcomes before implementation:
I would not implement this as-is without deciding that first.
I re-checked the real XMonad
TwoPanebehavior before implementing this. CanonicalTwoPaneshows only two windows at a time: the master on the left, and on the right either the focused window or the second window in layout order. Extra windows stay in the workspace but are not laid out.That hidden-window model does not map cleanly to tmux panes inside one window, which are represented as one visible non-overlapping split tree. So this lands in the same mismatch class as
deck: there is no faithful tmux-native way to keep exactly two panes visible while other panes in the same window remain hidden but still focusable in the background.Given that mismatch, and because existing tmux-native layouts already cover the practical small-workspace cases better, I’m closing this as not planned rather than adding an ambiguous approximation.