mikavilpas / yazi.nvim

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

fix: don't close a removed file if renamed to later #26

Closed mikavilpas closed 3 months ago

mikavilpas commented 3 months ago

sometimes I find myself renaming a file to a new name, and then renaming it back to the original name. This causes the file to be closed and then opened again, which is not necessary. This commit fixes this issue by checking if the file is already open before closing it.