fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 536ec18859f2fadb864023b5dd920d23a7cda671 parent 5c16a1a038389c3a083b5ea8776f271f793b362d Author: John Hawthorn <john@freerunningtechnologies.com> Date: Fri, 1 Aug 2014 19:34:41 -0700 No need to scale score in 0..1 Change-Id: Iea655e766abdaec8e7f3e2c3aa5d23274636cfb9 Diffstat:
| M | match.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/match.c b/match.c @@ -155,7 +155,7 @@ double calculate_score(const char *needle, const char *haystack, size_t *positio } } - return (float)(M[n-1][m-1]) / (float)(n * 2 + 1); + return M[n-1][m-1]; } double match_positions(const char *needle, const char *haystack, size_t *positions){