Conditional move that tries --boundaries-action create-implicit-container before crossing monitors
#1760
Replies: 2 comments 1 reply
-
Our mental models are different. In my mental model, creating an implicit container always succeeds. One can observe it by disabling normalizations or by having windows of different sizes. Please read this thread #183 |
Beta Was this translation helpful? Give feedback.
-
|
Documenting my current workaround for this: If I've got a monitor to my left and a horizontally arranged accordion on the monitor to the right, where I want to split one window out to the left of that accordion (but still within the right monitor), I'll split it upwards and then hit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'd like to have a single keybinding that first tries to create a container in the current workspace (using
--boundaries-action create-implicit-container), but if there's no space left in that direction, it then moves the window to the adjacent monitor (as if using--boundaries all-monitors-outer-frame).Example use case
Imagine I have a horizontal stack (“accordion”) of windows. When I press
alt-shift-h(move left):--boundaries workspace --boundaries-action create-implicit-container).--boundaries all-monitors-outer-frame).What I've tried
…but this doesn’t work because
move --boundaries-action create-implicit-containerdoesn’t expose a non-zero exit code or failure signal when nothing happened (e.g. when already at the edge), so the||fallback never triggers, even though the first move didn’t actually move anything.Potential solution
To preserve the existing paradigm of separate
--boundariesand--boundaries-actionflags, perhaps something like a--fail-if-noopflag so that||knows whencreate-implicit-containerhasn't done anything.Beta Was this translation helpful? Give feedback.
All reactions