Replies: 1 comment
-
See also the discussion here: #734 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wanted to start by saying that i love
fd
and i've been using it for many years, it's AWESOMEMy main use for this tool is as the backend for file search operations in regularly use in neovim. However I came up with an idea to speed up my searches and get "better" results: start searching in the directory of the file i'm currently editing and then continue to search in the directory above this one and then above that one all the way to the project's root (usually where the git root is).
So I wrote a wrapper that for the following dir structure
If i want to search for files starting from the
lua/custom/plugins
dir it will executefd
like thisIt prints results in this order
This order of results is absolutely a MUST for faster searches, not only are the results at the top move relevant to my search but also the closest files are found earlier than the ones far away
here's the script
Is this something you'd like to include in fd?
Beta Was this translation helpful? Give feedback.
All reactions