junegunn / fzf.vim

fzf :heart: vim
MIT License
9.55k stars 583 forks source link

:FZF command takes 4~5 seconds to close the popup window #1422

Open lilx2018 opened 1 year ago

lilx2018 commented 1 year ago

I use newest fzf (0.32.1 && fzf.vim (master branch) on neovim (ver 0.7.2 release version), with OS: win 10 && win11, but I notice evey time I run command :FZF, then press ESC, the popup window candidate window will be keep open till 4 seconds to disappear.

Detailed operation process:

  1. open neovim with fzf.vim installed.

  2. input :FZF, then it will open candidate window. ( If I open task manager, I notice that the fzf.exe and its parent process cmd.exe has runing)

  3. hit ESC, I notice that the content of candidate window disappear, which displays a black rectangle with the cursor in the upper left corner. (If I open task manager, I notice that the fzf.exe and its parent process cmd.exe has finished, show that the process of fzf.exe has closed.)

  4. After about 4 to 5 seconds, the popup rectangle box disappears and the focus returns to the editor window. but , if I hit any key between 4 to 5 seconds (Enter or ESC) , the popup rectangle box will disappears immediately.

3'~4'. if I dont hit ESC but select one file, the popup rectangle box disappears about 4 to 5 seconds then the selected file open. this cause 4 to 5 seconds to open a file after I make the select.

other command, :Files, :Rg xxx , also has same problem.

Additional information:most time it take 4 to 5 seconds to open a file after I make the select, but sometime(maybe 10%) it open the file quite fast (less then 1 second),.

And thank you for the great work!

lilx2018 commented 1 year ago

It is very strange, when I install leslie255/nvim-config as work envirment, :FZF often open selected file less than 1 second.

非常奇怪的是,当我装了 leslie255/nvim-config 作为整个集成的 neovim 配置工作环境,:FZF 打开选中的文件,反而很快就打开了,很少有超过 1 秒。