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

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

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

mikavilpas
Copy link
Owner

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 #58

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 #58
@mikavilpas mikavilpas merged commit 93de590 into master Jun 21, 2024
13 checks passed
@mikavilpas mikavilpas deleted the fix-open-dir branch June 21, 2024 13:06
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

Successfully merging this pull request may close these issues.

When opening a directory, insert mode is not activated
1 participant