junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

can't exit fzf when clicking outside of floating window #1399

Open M1cha opened 2 years ago

M1cha commented 2 years ago

I'm using neovim and when I use the mouse to click outside of the floating fzf window the focus is back in the editor but the fzf window is still visible. It can't be refocused by clicking on it and has to be killed forcefully

damiendart commented 1 year ago

I've worked around this issue by closing the popup window running fzf once it loses focus:

autocmd FileType fzf autocmd WinLeave <buffer> close!

This issue doesn't affect Vim users, as popup windows running a terminal cannot lose focus (see :h popup-terminal).

gbtec-markusmeier commented 11 months ago

Thanks for the workaround - I was looking for a solution to that, too :)