-
-
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
Add walker options and replace 'find' with the built-in walker #3649
Conversation
93b2236
to
2616cbb
Compare
I'm wondering if we should add Or should we try to implement |
Alex from nvim-tree here, please ignore me if I'm talking out of place.
We should have ignored Could I suggest that you ignore |
I think that's safe. Lots of node developers out there and I don't think looking in node_modules would normally be useful.
I think it's probably too much for a default, like you I do sometimes want to search for files that are gitignored. Better to recommend using
Similarly, I think this is probably too broad. Without any other context they're too common of words and might appear in other places. |
Thanks a lot for the comments.
I also thought about that.
I think most of the users of fzf are software engineers, so they are unlikely to create directories named |
@junegunn Release 0.47.0 mentions these changes but this PR still needs to be merged. I'm guessing you probably knew but wanted to make sure. |
@kelleyma49 Thanks, I'm going to merge this and release a new version in the coming days. Please test this on Windows and let me know if you run into any problems. @timhillgit Thanks, I'm aware. I was in a bit of a rush to push out some important bug fixes so I prematurely released 0.47.0 without realizing that I hadn't merged this PR. However, the release note for 0.47.0 isn't incorrect in that we have already merged fastwalk patch to the master branch. The default find command has been replaced but without the options proposed here to customize the behavior. |
Close #3464
Close #3647
Related #2705
Add options for the built-in directory walker and use them to replace the default 'find' commands in the shell extensions.
--walker=OPTS
[file][,dir][,follow][,hidden]
)file,follow,hidden
--walker-root=DIR
.
--walker-skip=DIRS
.git,node_modules
Note
Ways to implement
--walker-skip
Benchmark
We use simple nested for loop comparison because the size of the list is unlikely to exceed 5.