-
-
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
Provide example FZF_DEFAULT_COMMAND for find
alternative to speed up filtering with a cache
#4014
Comments
When # Reading input from STDIN
seq 10 | fzf
# Using fzf's built-in directory walker
fzf
Version # Using fzf's built-in directory walker excluding some folders
fzf --walker-skip=.git,Photos,Library Footnotes |
Thanks for the pointers! 👍 I'm beginning to think the issue must be something else, too. If I run |
Same result, yes. Runs forever. |
Runs forever.
Finishes. (Very quick even.) Sooo, something goes wrong with symlinks. |
Investigating possible responsible subfolders which contain symlinks:
|
Closed in favor of #4015 |
Checklist
man fzf
)Output of
fzf --version
0.55.0 (fc69308)
OS
Shell
Problem / Steps to reproduce
❤️ First of all, love fzf, thank you very much for your hard work!
Unfortunately, it's kinda slow on my old laptop due to lots of files and folders. It's much quicker in subsequent runs. This has come up in previous issues a lot. As far as I understand, fzf parses
find
by default, which explains the observed behavior. However, it would be possible to replace the defaultFZF_DEFAULT_COMMAND
with a smarter program, which uses a cache to speed up things. Here are some references from previous threads:#1284
#763
#2550
I understand
ripgrep
and/orfd
might help but I struggle to configure my fzf settings accordingly. Would it still be out of scope for fzf docs to provide a simple, first draft example how to set an alternativeFZF_DEFAULT_COMMAND
to speed things up by using a cache? I'd certainly appreciate it. And judging by the amount of previous threads I found, I might not be the only one who'd appreciate it. 🙏The text was updated successfully, but these errors were encountered: