-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Significant delay when opening the selected file from fzf panel in bash #1064
Comments
Do you use time rg --files | head -1
time ag -g "" | head -1 Related: BurntSushi/ripgrep#200 |
Yes, I do use |
They seem to have fixed the issue for *nix systems, but an official release with the fix has not been released yet. I'll check if they have any plans for a new version. |
I'm pretty sure that it's not an issue of fzf or fzf.vim. Does Anyway, rg still shows some delay in some cases and I now use fd instead which is better suited for this use case. jg@jg-mbp:~> time rg --files | head -1
out
real 0m1.601s
user 0m1.298s
sys 0m3.737s
jg@jg-mbp:~> time fd --type f | head -1
out
real 0m0.116s
user 0m0.174s
sys 0m0.162s |
I'm actually getting the same behaviour with I'm using:
It wasn't an issue before I formatted this machine... not sure what versions of things I was running before though. The only major thing I can think of is now I'm using the neovim appimage instead of their ubuntu repos as I was before. |
I should note the delay is only on the first invocation, if it ever finishes the next one is lightning fast. |
@dpnova See if you can still reproduce the problem with the minimal configuration as suggested here. https://raw.githubusercontent.com/junegunn/fzf.vim/master/.github/ISSUE_TEMPLATE.md |
I've noticed that sometimes the panel goes away if I select anotoher window/term and then go back to this one... could it be related to waiting for something? I've recently moved back to gnome terminal/tilix from urxvt .. could it be related? |
No idea, do you have the same issue on regular Vim? |
My simple testing with vim seems to indicate it's isolated to nvim. I could open a bug over there.. I'm not quite sure what I would report as the issue though. I'll link back here. Thanks! |
@liuchengxu @junegunn I am using Ag and I am facing the significant delay problem? How to solve it? |
When I want to open a file using
:FZF ~
, given the file selected andenter
key pressed, it will cost more than ten seconds to open the selected one. What's more, the delay also comes with<Ctrl-c>
to close fzf in vim.The problem only occurs in bash. In zsh, everything goes well. Any tips to figure it out? Thanks.
The text was updated successfully, but these errors were encountered: