summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-12 23:14:32 +0100
committerPhil Jones <philj56@gmail.com>2022-08-12 23:14:32 +0100
commit8e45592c5703451563eaf4edcd7033f80ce23b53 (patch)
tree3af3dcc6d84464ba0009ab6c5fdd7bea3fde4408 /doc
parent64dfe36d347a2b329d8c0b6baa3ff782e66f0233 (diff)
Add --fuzzy_match option.
This enables some simple fuzzy matching logic for searches.
Diffstat (limited to 'doc')
-rw-r--r--doc/config3
-rw-r--r--doc/tofi.5.md8
-rw-r--r--doc/tofi.5.scd7
3 files changed, 18 insertions, 0 deletions
diff --git a/doc/config b/doc/config
index 8d9d743..f65b86d 100644
--- a/doc/config
+++ b/doc/config
@@ -121,6 +121,9 @@
# Sort results by number of usages in run and drun modes.
history = true
+ # Use fuzzy matching for searches.
+ fuzzy-match = false
+
# If true, directly launch applications on selection when in drun mode.
# Otherwise, just print the command line to stdout.
drun-launch = false
diff --git a/doc/tofi.5.md b/doc/tofi.5.md
index 23f4cb2..446ec8e 100644
--- a/doc/tofi.5.md
+++ b/doc/tofi.5.md
@@ -240,6 +240,14 @@ options.
>
> Default: true
+**fuzzy-match**=*true\|false*
+
+> If true, searching is performed via a simple fuzzy matching algorithm.
+> If false, substring matching is used, weighted to favour matches
+> closer to the beginning of the string.
+>
+> Default: false
+
**drun-launch**=*true\|false*
> If true, directly launch applications on selection when in drun mode.
diff --git a/doc/tofi.5.scd b/doc/tofi.5.scd
index c36f98c..2cb4dad 100644
--- a/doc/tofi.5.scd
+++ b/doc/tofi.5.scd
@@ -208,6 +208,13 @@ options.
Default: true
+*fuzzy-match*=_true|false_
+ If true, searching is performed via a simple fuzzy matching algorithm.
+ If false, substring matching is used, weighted to favour matches closer
+ to the beginning of the string.
+
+ Default: false
+
*drun-launch*=_true|false_
If true, directly launch applications on selection when in drun mode.
Otherwise, just print the path of the .desktop file to stdout.