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

Automatically resize ataraxis mode on VimResize #53

Closed
ghost opened this issue Aug 12, 2021 · 3 comments
Closed

Automatically resize ataraxis mode on VimResize #53

ghost opened this issue Aug 12, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 12, 2021

Would it be interesting to implement a VimResize autocommand which adjusts the middle buffer dimensions whenever the window gets resized?

The actual behavior is whenever a window gets resized, the middle buffer isn't adjusted, it's needed to run :TZAtaraxis twice in order to toggle off and then on again for centering it accordingly to the current terminal window boundaries

@pocco81
Copy link
Owner

pocco81 commented Aug 13, 2021

Good idea, I'll add it! But I don't think I'll make it to "run TZAtaraxisOff and then TZAtaraxisOn when nv was resized".

I did test that but I ran into a lot of problems. For starters, nvim got stock in a infinit loop, because when I turned Ataraxis off it meant that nv was resized, which triggered the auto command and it went like that... Also, I use tmux and have the tmux integration enabled. Which means that untoggling the whole thing will just... Look messy.

Maybe something like a "denounce delay" would do the trick to avoid getting stuck in an infinite loop?

@pocco81
Copy link
Owner

pocco81 commented Aug 17, 2021

Whoops sorry for closing this! I accidentally referenced the wrong the issue :)

@pocco81
Copy link
Owner

pocco81 commented Jul 30, 2022

Hello! please check #84.

@pocco81 pocco81 closed this as completed Jul 30, 2022
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

1 participant