Skip to content
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

Take space from current window instead of pushing window to the other side #134

Open
augustocdias opened this issue Aug 5, 2022 · 3 comments
Labels
enhancement New feature or request P2 Not a priority. PRs welcome

Comments

@augustocdias
Copy link

It would be nice if aerial window could take space from the current window instead of pushing the window to the other side.

See the gif bellow. When I open aerial on the right split it pushes the window left and reduces the side of the leftmost window.
tty

@stevearc
Copy link
Owner

stevearc commented Aug 8, 2022

This is one area that I've not really been happy with. Vim and Neovim don't have many affordances in the way of describing window layouts. It's basically just winwidth/winheight and winminwidth/winminheight, and winfixwidth/winfixheight. There's a great way to read a nested description of all windows in the form of winlayout(), but there's no corresponding way to write that layout.

I think this is a problem worth thinking about in-depth, and could probably use some work in nvim/vim itself. Until we get a better API for opening a vsplit than ":leftabove vsplit", it's going to require a pile of hacks to do anything specific.

@pidgeon777
Copy link

Could this help in some way?:

https://github.com/luukvbaal/stabilize.nvim

neovim/neovim#19243

@stevearc
Copy link
Owner

I think that the stabilize option is more about preventing the text from jumping in the window rather than changing which window gets resized during a split. Also IIRC it currently only works for horizontal splits.

@stevearc stevearc added enhancement New feature or request P2 Not a priority. PRs welcome labels Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Not a priority. PRs welcome
Projects
None yet
Development

No branches or pull requests

3 participants