diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-08-25 08:43:40 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-08-25 21:17:58 +0200 |
commit | 20e55e1e4e7a084e2e86c16e5b3f0497a14773a4 (patch) | |
tree | e3a45cbbbf93135bcafbdced2878bac0282d2fe6 /include/settings.h | |
parent | a657f81145465df1d8a75bedb1b56a0e99d541e0 (diff) |
Add fuzzy matching, make a -matching option.
* -matching *method* option instead of -regex, -glob, -fuzzy.
* Re-add fuzzy matching pattern.
* When there are substrings in regex, only highlight those matches.
Fixes: #447
Diffstat (limited to 'include/settings.h')
-rw-r--r-- | include/settings.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/settings.h b/include/settings.h index 39b60868..e61c5276 100644 --- a/include/settings.h +++ b/include/settings.h @@ -2,6 +2,19 @@ #define ROFI_SETTINGS_H /** + * Enumeration indicating the matching method to use. + * + * @ingroup CONFIGURATION + */ +typedef enum +{ + MM_NORMAL = 0, + MM_REGEX = 1, + MM_GLOB = 2, + MM_FUZZY = 3 +} MatchingMethod; + +/** * Enumeration indicating location or gravity of window. * * \verbatim WL_NORTH_WEST WL_NORTH WL_NORTH_EAST \endverbatim @@ -105,9 +118,9 @@ typedef struct unsigned int parse_known_hosts; /** Combi Modes */ char *combi_modi; - unsigned int glob; + char *matching; + MatchingMethod matching_method; unsigned int tokenize; - unsigned int regex; /** Monitors */ char *monitor; /** Line margin */ |