diff options
author | Dave Davenport <DaveDavenport@users.noreply.github.com> | 2018-06-13 11:57:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 11:57:23 +0200 |
commit | bdb6abef4a2b3cd3c02443038f43af74fd1bc987 (patch) | |
tree | 87bdccfad5df3647003c9b10cf094b0fe9293ddb /include | |
parent | 9909fb3d7108c2cea200848d3e2a766f46be2f3b (diff) |
Sorting cleanup (#816)
* Add `-sorting-method` option remove weird -sort-levenshtein.
* Fix test for updated cmdline options.
* Update manpage
Diffstat (limited to 'include')
-rw-r--r-- | include/settings.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/settings.h b/include/settings.h index 66729597..cfd1aaf6 100644 --- a/include/settings.h +++ b/include/settings.h @@ -43,6 +43,12 @@ typedef enum MM_FUZZY = 3 } MatchingMethod; +typedef enum +{ + SORT_NORMAL = 0, + SORT_FZF = 1 +} SortingMethod; + /** * Settings structure holding all (static) configurable options. * @ingroup CONFIGURATION @@ -104,10 +110,12 @@ typedef struct unsigned int disable_history; /** Toggle to enable sorting. */ unsigned int sort; + /** Sorting method. */ + SortingMethod sorting_method_enum; + /** Sorting method. */ + char * sorting_method; /** Desktop entries to match in drun */ char * drun_match_fields; - /** Use levenshtein sorting when matching */ - unsigned int levenshtein_sort; /** Search case sensitivity */ unsigned int case_sensitive; /** Cycle through in the element list */ |