-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever split horizontal is triggered, window is "pushed" down #96
Comments
@Nikki1993 This is because split creates new implicit horizontal container and the window is moved inside. In default config, there is a |
I just got an idea that it would make sense to create paddings from all 4 sides for windows that are the only child of their parent container, regardless of the containers orientations Showing 4 paddings would be a better visualization Example 1:
Example 2
And apply Example 3
Example 4
|
Idea No. 2 When a window is the only child of its parent then pretend that there is a second child in the container. It would create a "gap" in the tiles. But the gap will make it clear what orientation the parent has. Given this layout:
It would be rendered as if window2 had a sibling:
Given this layout:
It still would be rendered as if window2 had a sibling:
Correct me if I'm wrong, but the only reason why people create containers that have only a single child is to later add another window as a sibling. The empty gap in tiles would make this intention clear And this idea makes it possible to use |
Motivation: 1. it's confusing 2. v1.0 stabilization - #96 - https://x.com/nikitabobko/status/1774895115342950657
Motivation: 1. it's confusing 2. v1.0 stabilization - #96 - https://x.com/nikitabobko/status/1774895115342950657
Breaking change. |
Motivation: 1. it's confusing 2. v1.0 stabilization - nikitabobko#96 - https://x.com/nikitabobko/status/1774895115342950657
I am having hard time describing it well so I've recorded a video.
I got 2 keybinds.
Whenever I want to split horizontally window gets pushed. Then I switch back to split vertical and it goes back up. If I trigger split horizontally and then close the window to the right and re-open it again, window gets correctly positioned from top to bottom. If I open another, it also correctly splits horizontally. But if I were to open a new window when the previous one is "pushed" down, the second window will also appear "pushed" down.
Screen.Recording.2024-01-03.at.18.48.51.mov
The text was updated successfully, but these errors were encountered: