mikavilpas / yazi.nvim

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

Yazi loses focus on mouse click #70

Closed gldtn closed 1 month ago

gldtn commented 1 month ago

If you click anywhere in the terminal window, even on top of yazi, it loses focus and becomes unusable. You have to kill it with :q and get back into it!

mikavilpas commented 1 month ago

Can you reproduce this issue using this script and nvim -u repro.lua?

gldtn commented 1 month ago

Yes, here is a gif

repro

mikavilpas commented 1 month ago

Thanks for the gif, it was really helpful. I think this is actually built in behaviour in neovim!

If you run a :terminal and do the same thing, it behaves the same. You can still continue using it if you press i to enter insert mode though. The same works for yazi.nvim.

mikavilpas commented 2 weeks ago

I think this might have been worked around in the latest version, in bc2aabbc23aa (included in version v1.1.3)