mikavilpas / yazi.nvim

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

fix: opening "nvim dir/" may focus wrong window #120

Closed mikavilpas closed 1 week ago

mikavilpas commented 1 week ago

Yazi.nvim has a feature where you can specify open_for_directories = true to automatically open yazi when opening a directory in Neovim.

In some cases, opening a directory when starting Neovim from the command line would show yazi, but the window under yazi was selected. Yazi was supposed to have been focused instead.

This was due to the default netrw file manager not having a file name for the buffer that was opened. I don't know why this only happened in some cases.

Fixes https://github.com/mikavilpas/yazi.nvim/issues/58