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 /src/config.c | |
parent | 64dfe36d347a2b329d8c0b6baa3ff782e66f0233 (diff) |
Add --fuzzy_match option.
This enables some simple fuzzy matching logic for searches.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 7ee29e8..801a5bf 100644 --- a/src/config.c +++ b/src/config.c @@ -321,6 +321,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->hide_cursor = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "history") == 0) { tofi->use_history = parse_bool(filename, lineno, value, &err); + } else if (strcasecmp(option, "fuzzy-match") == 0) { + tofi->fuzzy_match = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "drun-launch") == 0) { tofi->drun_launch = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "drun-print-exec") == 0) { |