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

Even splits when jumping the end splits #32

Open
JalisoCSP opened this issue Jan 14, 2019 · 2 comments
Open

Even splits when jumping the end splits #32

JalisoCSP opened this issue Jan 14, 2019 · 2 comments

Comments

@JalisoCSP
Copy link

Golden Ratio splits nicely when moving between panes with Ctrl+W, h/l, but resets widths to even when moving with H/L (Shift)

Not a big deal, as it continues as normal if you move again.

Let me know if you need more clarity.

@idbrii
Copy link
Collaborator

idbrii commented Jan 18, 2019

So works for moving focus between windows, but doesn't resize when moving a window's position relative to other windows?

resets widths

What should it do? Update height and not modify widths?

I'd guess you can fix by using:

nnoremap <C-w>H <C-w>H:GoldenRatioResize<CR>
nnoremap <C-w>L <C-w>L:GoldenRatioResize<CR>
nnoremap <C-w>J <C-w>J:GoldenRatioResize<CR>
nnoremap <C-w>K <C-w>K:GoldenRatioResize<CR>

@JalisoCSP
Copy link
Author

JalisoCSP commented Jan 21, 2019

Yep, when moving the window's position, all the window sizes get reset evenly and the focus is not wider.

The nnoremap changes does the trick for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants