Feature idea: add a primary-secondary layout command #2043
Unanswered
alexrochas
asked this question in
feature-ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’d like to propose a built-in
primary-secondarylayout command.Use case
A common workflow is to keep one “main” window large and visible at all times, while the remaining windows live in a secondary vertical stack.
Examples:
Today this can be approximated manually by reshaping the tree, but it is not very convenient to re-establish quickly or to promote another window into the main position.
Proposal
Add a command:
Behavior:
If the workspace is already in this layout, running the command on another focused tiling window should promote that window into the primary pane.
Mental model
This is not meant to be a separate global layout engine.
It is a practical tree transformation plus layout preservation for a very common “one big window + side stack” workflow.
The user mental model is:
Why a dedicated command
The value is not only the initial rearrangement, but also:
Without that, users have to rebuild the shape manually.
Proposed CLI synopsis
Alternatives considered
Experience from testing
I also have a working implementation on my fork and have been using it daily for about two weeks.
So far, the interaction of:
primary-secondaryhas felt simple and practical in daily use.
I also recorded a short demo from real usage that shows:
primary-secondaryprimary-secondary-demo.mov
Implementation direction
I already have a working implementation in a branch.
The approach is additive:
primary-secondarycommandIf the direction looks reasonable, I can open a PR with the existing implementation for review.
Questions
primary-secondarythe right naming?Beta Was this translation helpful? Give feedback.
All reactions