summaryrefslogtreecommitdiff
path: root/completions/tofi
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2023-04-17 23:43:05 +0100
committerPhil Jones <philj56@gmail.com>2023-04-17 23:43:05 +0100
commit574eff0df1aff9bdc6d32939a03312cc08803de3 (patch)
tree5aeca72f70314bee3bf95db99f10d89f0a7b4032 /completions/tofi
parent71a4801d20d8904cfcfa5e92c96d53ee06a2c69f (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 'completions/tofi')
-rw-r--r--completions/tofi1
1 files changed, 1 insertions, 0 deletions
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