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

fix: don't minimize windows on resize #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: don't minimize windows on resize #25

wants to merge 1 commit into from

Conversation

habamax
Copy link

@habamax habamax commented Apr 6, 2020

After window was resized use winfixwidth and winfixheight to fix window
size and run wincmd = to make all windows even (except windows with
fixed widths and heights). Unfix size afterwards.

Fixes #17 and probably fixes #19

After window was resized use winfixwidth and winfixheight to fix window
size and run `wincmd =` to make all windows even (except windows with
fixed widths and heights). Unfix size afterwards.

Fixes #17 and probably fixes #19
@habamax habamax changed the title fix: don't minize windows on resize fix: don't minimize windows on resize Apr 6, 2020
@habamax
Copy link
Author

habamax commented Apr 6, 2020

vim-lens-fix

habamax added a commit to habamax/.vim that referenced this pull request Apr 6, 2020
Use forked lens till my PR
(camspiers/lens.vim#25) is accepted or not.

If not, well, continue using fork. :)
@hakunin
Copy link

hakunin commented Apr 9, 2020

This does improve the usablity of the plugin as before the minimization was quite strange.
As to #19, it doesn't seem provide the option I was looking for (to make current + neighbours big and the rest tiny).

@habamax
Copy link
Author

habamax commented Apr 9, 2020

to make current + neighbours big and the rest tiny

Ok, looks like I missed the point there. Indeed, it doesn't solve #19

@nkakouros
Copy link

This works without animate.vim but with animate.vim enabled the issue still exists.

For instance, open vim (or nvim as in my case) with only animate.vim and lens.vim installed and open a file. Press c-w v 10 times to get 11 splits. You will see the some splits are tiny.

Of course, 11 vertical splits are pretty useless, but when the vim window is not covering the full screen the same can happen even with 3 splits.

Perhaps the same lines (that I have no idea how they solve the issue) need to be added to animate.vim's functions as well?

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

Successfully merging this pull request may close these issues.

Option to keep nearby buffers big as well Resize prefers the right side without animate.vim
3 participants