Replies: 2 comments 7 replies
|
If you figure out the name of that app, let me know and I'll try to figure out what they did (although this is likely something I would rather add to Rectangle Pro). What I'm curious about is where the logic will stop, as in, how far to do you go before it decides not to resize smaller, and there must be a mechanism for backing out what you've done to say, go from left 1/8 back to right 1/4. If someone has already figured out an optimal state machine then that would make it a dramatically smaller problem to solve. |
|
PR #1824 implements a bounded version of this for the four half actions, in case it helps answer the "where does the logic stop" question: each axis has only three states — whole, docked to the leading edge, docked to the trailing edge — recognized from the window's current frame. The action for an edge docks the window to it; the action for the opposite edge expands that axis back to whole (so a bottom-left quarter goes back to Left Half with Top Half, and Right Half from a left half fills the screen). Nothing shrinks below a half-split on its own axis, and backing out is always the opposite key, so there is no extra state to remember. Untiled windows and repeated executions of a plain half are left to the existing code. |
Uh oh!
There was an error while loading. Please reload this page.
The assignments should be relative instead of absolute, so you can shove a window around, linearly progressing it to where you want.
Then you don't need to assign separate shortcuts for the 4 corners. Just execute two shortcuts.
e.g. for Bottom Left: 1. Left Half 2. Bottom Half
Advancing the logic, if a window is in Bottom Left and you hit "Top Half", it should return to Left Half
(This was the behavior of a now-abandoned window management app I used to use, but I forget which one.)
All reactions