perf: processing open buffers only processes normal buffers
Buffers are processed when renaming, deleting, and trashing files in
yazi. Previously all open buffers were processed, but now only normal
buffers are.
This actually doesn't have a big impact on performance. I just wanted to
have a perf commit in the history 😄. Perhaps in big projects it might
be noticeable, or if some future feature will require more performance.
fix: open buffers deleted in yazi were not closed
When a buffer was opened in neovim and being edited, and then yazi deleted it, the buffer was not closed. I'm not sure what broke it.
The fix is to close the buffer asynchronously. I don't understand why that fixes the issue, but it does.
vim.await
is really cool. I found it here: https://www.reddit.com/r/neovim/comments/1cv5q45/comment/l4s2ya0/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_buttonperf: processing open buffers only processes normal buffers
Buffers are processed when renaming, deleting, and trashing files in yazi. Previously all open buffers were processed, but now only normal buffers are.
This actually doesn't have a big impact on performance. I just wanted to have a
perf
commit in the history 😄. Perhaps in big projects it might be noticeable, or if some future feature will require more performance.