feat: can use ya emit
for more accurate <tab> to file (opt-in)
#604
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To celebrate the release of yazi 0.4.0, you can now opt in to improve the accuracy of
<tab>
to a file. Read below for more information on what this is and how you can opt into using it.https://github.com/sxyazi/yazi/releases/tag/v0.4.0
Background
When yazi is open, and there are multiple splits open in neovim, it's currently possible to press
<tab>
to cycle through the open buffers. When you press<tab>
, yazi will change its current directory and focus the file that's next in the list of open splits (vertical or horizontal split).Issue
When pressing
<tab>
, yazi was only able to change its current directory to the same directory the next split is in. If there were multiple files in that directory, the first file would be focused. This is not necessarily the file that's next in the list of open splits, which can be disorienting.Solution
If you have yazi 0.4.0 or later, you can now set the following in your yazi.nvim configuration: