mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager
MIT License
243 stars 7 forks source link

Rescaling the window break Yazi #53

Closed Zeioth closed 2 months ago

Zeioth commented 2 months ago

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

Zeioth commented 2 months ago

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 commented 2 months ago

Sorry I just noticed #39, closing.

Zeioth commented 2 months ago

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.

mikavilpas commented 2 months ago

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 commented 2 months ago

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 https://github.com/sxyazi/yazi/issues/989

This can now be tracked in #39