diff options
author | Phil Jones <philj56@gmail.com> | 2022-08-12 23:14:32 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-08-12 23:14:32 +0100 |
commit | 8e45592c5703451563eaf4edcd7033f80ce23b53 (patch) | |
tree | 3af3dcc6d84464ba0009ab6c5fdd7bea3fde4408 /doc | |
parent | 64dfe36d347a2b329d8c0b6baa3ff782e66f0233 (diff) |
Add --fuzzy_match option.
This enables some simple fuzzy matching logic for searches.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/config | 3 | ||||
-rw-r--r-- | doc/tofi.5.md | 8 | ||||
-rw-r--r-- | doc/tofi.5.scd | 7 |
3 files changed, 18 insertions, 0 deletions
@@ -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. |