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. --- completions/tofi | 1 + 1 file changed, 1 insertion(+) (limited to 'completions/tofi') diff --git a/completions/tofi b/completions/tofi index 3983090..e588694 100644 --- a/completions/tofi +++ b/completions/tofi @@ -76,6 +76,7 @@ _tofi() --hide-cursor --history --history-file + --matching-algorithm --fuzzy-match --require-match --auto-accept-single -- cgit v1.2.3