mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rescaling the window break Yazi

Zeioth opened this issue · comments

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

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

Sorry I just noticed #39, closing.

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.

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.

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