-
-
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
Allow walking multiple root directories #4109
base: master
Are you sure you want to change the base?
Conversation
2007df5
to
3f6a7d6
Compare
Can you explain why it felt not ideal? fd is a dedicated directory traversal program with much more versatility (notably .gitignore support). The built-in walker of fzf can be a good default for many users, but it isn't supposed to be, or tries to be, as good as dedicated external programs. |
That was also my initial thought, but after a bit of testing, I found that the built-in walker was actually quite faster than Also when using |
/cc @charlievieth FYI |
Despite being the author of fastwalk I actually use Regarding the performance of The code changes around Also, I currently don't have any plans to add native support for multiple search roots to |
@charlievieth Thanks for the comment.
I was also worried about the same thing and thought that we should take multiple arguments instead of a single comma-separated string. See cff9d83 Some counter-points:
|
Thank you both for the informative comments ! I wasn't aware that I remain at your disposal if you need anything. |
@msabathier Please review and test the last two commits I made on your branch. |
014398e
to
2d0a0b6
Compare
I just reviewed and tested your changes and everything looks and works fine to me. On a side note, i did a bit of performance testing and i found that
If we pipe |
Makes sense to me.
Nice and and thank you for taking the time to dig into this! Looks good to me and thanks for the ping. |
Hi,
I have been trying to search a file or directory with fzf on Windows on multiple drives.
I managed to do it by piping the output of
Get-ChildItem
cmdlet (slow) and then the output offd
(faster but not ideal).It was not a satisfying solution to me so i started to look at the code of fzf and found a solution to this problem by using a comma separated list in the
--walker-root
argument.I am not proficient in go so the implementation might not be what you are looking for, don't hesitate to guide me towards a solution that suits you.
Best regards,
Martin