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

Rescaling the window break Yazi #53

Closed
Zeioth opened this issue Apr 25, 2024 · 5 comments
Closed

Rescaling the window break Yazi #53

Zeioth opened this issue Apr 25, 2024 · 5 comments

Comments

@Zeioth
Copy link
Contributor

Zeioth commented Apr 25, 2024

If after opening yazi
screenshot_2024-04-25_21-24-46_212366744

@Zeioth
Copy link
Contributor Author

Zeioth commented Apr 25, 2024

We resize the window, it won't re-scale to the new size.
screenshot_2024-04-25_21-30-50_384044750

Closing the Yazi window after this has happened, will display the message "Process exited 0", instead of closing normally.
screenshot_2024-04-25_21-28-03_066734704

@Zeioth
Copy link
Contributor Author

Zeioth commented Apr 25, 2024

Sorry I just noticed #39, closing.

@Zeioth
Copy link
Contributor Author

Zeioth commented Apr 25, 2024

Even though this might actually be a nvim bug (I also experience it by running yazi on :terminal), it's worth checking the ranger plugin https://github.com/kevinhwang91/rnvimr

They managed to overcome this limitation.

@Zeioth Zeioth closed this as completed Apr 25, 2024
@mikavilpas mikavilpas reopened this Apr 26, 2024
@mikavilpas
Copy link
Owner

Might be improved a bit with #59, but it will probably be useful to see how the rnvimr is able to avoid this issue altogether.

@mikavilpas
Copy link
Owner

I think I figured out how rnvimr does it, it seemed to use RPC (remote procedure calls) from nvim to ranger in order to work around the resizing by telling the file manager itself to resize.

The same thing could theoretically be done here if some kind of api for this became available in yazi.

Related sxyazi/yazi#989

This can now be tracked in #39

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

2 participants