Repository navigation
Replies: 2 comments 3 replies
|
with regquests like this it's always a question of what prioritize means: Is that a tie breaker? Does it tie into the scoring? If so how much to increase the score (eg. you searched for |
|
due noting that fzf does "tiebreak for prioritizing matches occurring in the tail element of a file path" with even if it's not exactly zf's "basename matching", it works excellent as an alternative (at least for me) |
Uh oh!
There was an error while loading. Please reload this page.
I'm primarily familiar with
nucleothrough Helix and one paper-cut I experience every time in codebases with a larger-than-average number of files in them is that the fuzzy finder for files isn't all that great when trying to find a file that shares some part of its name with a directory.However, the opposite is true when I use https://github.com/natecraddock/zf, which has a matching algorithm that prioritizes matches on filenames, and I find that it's much easier to find the files I'm looking for when there's some ambiguity between directories and filenames.
Here are 2 examples where this comes into play that were easy for me to think up on the spot:
This may not be a good general approach for a fuzzy finder, but when searching for files specifically I think it's a big improvement.
Obviously this isn't a huge issue, and I don't think it's worth it to change the general matching algorithm. But if it's possible to add a separate matching function, or add a parameter or something to indicate that you are matching file names, maybe that's worth considering?
I think it would certainly improve the helix file picker at least, even if it's already mostly great.
All reactions