diff options
author | Phil Jones <philj56@gmail.com> | 2023-04-17 23:43:05 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-04-17 23:43:05 +0100 |
commit | 574eff0df1aff9bdc6d32939a03312cc08803de3 (patch) | |
tree | 5aeca72f70314bee3bf95db99f10d89f0a7b4032 /meson.build | |
parent | 71a4801d20d8904cfcfa5e92c96d53ee06a2c69f (diff) |
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.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
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', |