From 574eff0df1aff9bdc6d32939a03312cc08803de3 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 17 Apr 2023 23:43:05 +0100 Subject: Add --matching-algorithm option. This replaces the --fuzzy-match algorithm. Available choices are normal, prefix and fuzzy. Levenshtein distance was investigated, but it seems pretty rubbish for tofi's use case, where you normally want a good match when you've only typed a small portion of the target string. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 71f256d..0aa4949 100644 --- a/meson.build +++ b/meson.build @@ -104,7 +104,7 @@ common_sources = files( 'src/entry.c', 'src/entry_backend/pango.c', 'src/entry_backend/harfbuzz.c', - 'src/fuzzy_match.c', + 'src/matching.c', 'src/history.c', 'src/input.c', 'src/lock.c', @@ -121,7 +121,7 @@ common_sources = files( compgen_sources = files( 'src/main_compgen.c', 'src/compgen.c', - 'src/fuzzy_match.c', + 'src/matching.c', 'src/log.c', 'src/mkdirp.c', 'src/string_vec.c', -- cgit v1.2.3