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

Resize prefers the right side #6

Closed
SqrtMinusOne opened this issue Feb 22, 2020 · 6 comments
Closed

Resize prefers the right side #6

SqrtMinusOne opened this issue Feb 22, 2020 · 6 comments

Comments

@SqrtMinusOne
Copy link
Contributor

Apparently, the resize in vim first increases the size to right, and tries to increase size to the left only if there isn't enough space to the right. So, if number of splits is greater than 2, the behavior is as follows:
ezgif.com-video-to-gifdfd0ca7d13ad1504.gif

The leftmost split is untouched and all the resizing is happening between the last 2. #2 is clearly the result of this as well.

Setting winminwidth helps, but not much. Perhaps, there is a way to resize a window in both sides?

@camspiers
Copy link
Owner

If you run PlugUpdate or equivalent I have fixed this in animate.vim

@severij
Copy link

severij commented Feb 25, 2020

I'm getting exactly the same behavior, except I'm not using animate.vim. I have the most recent version of lens.vim installed. Installing animate.vim fixes the issue, but I would prefer not to use it.

@camspiers
Copy link
Owner

I could port a similar solution to lens.vim that is enabled when the animate plugin isn't being used. It's pretty much just setting winfixwidth/height and then distributing space with wincmd =

The solution however when you are animating is a lot more complex:

https://github.com/camspiers/animate.vim/blob/master/plugin/animate.vim#L97-L124

@JoyceBabu
Copy link

I came here to ask whether this is the intended behaviour, and found this ticket. I too prefer not to use animate.vim, and would really appreciate a fix directly in lens.vim.

@habamax
Copy link

habamax commented Apr 6, 2020

I could port a similar solution to lens.vim that i

Please! :)

Animate on windows is not that usable

@habamax
Copy link

habamax commented Apr 6, 2020

Hi, @camspiers !

I have implemented what you have mentioned in your comment:

I could port a similar solution to lens.vim that is enabled when the animate plugin isn't being used. It's pretty much just setting winfixwidth/height and then distributing space with wincmd =

#25

Could you look into it? Thanks! (and for the plugin, love it!)

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

No branches or pull requests

5 participants