Replies: 1 comment 1 reply
-
Same thoughts. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I like fzf for what it is, a fuzzy finder. However, from times to times I find that fzf returns too many matches, with some totally unrelated strings. For example while searching for
sudo
in bash history, one of the matches is:where the
^
symbols represent the highlighted matched characters.I found the
--exact
configuration option, but this is too strict: I would like to tell fzf to ignore matches that are too different from the query, but keep the ones not too different.I am thinking of some parameter corresponding to a threshold value on the distance of the returned string from the original query string, see for example the threshold option in Fuse.js, a Javascript fuzzy search library.
A threshold of 0 would mean to return an exact match, a threshold of 1 (or 100) would mean be as fuzzy as possible, show every single matching result, no matter how far from the query string.
Is this possible in fzf?
Thank You,
Ivan
Beta Was this translation helpful? Give feedback.
All reactions