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 /source/xrmoptions.c | |
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 'source/xrmoptions.c')
-rw-r--r-- | source/xrmoptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c index e66c78d9..3b07cb8c 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -139,8 +139,8 @@ static XrmOption xrmOptions[] = { "Disable history in run/ssh", CONFIG_DEFAULT }, { xrm_Boolean, "sort", { .num = &config.sort }, NULL, "Use sorting", CONFIG_DEFAULT }, - { xrm_Boolean, "levenshtein-sort", { .num = &config.levenshtein_sort }, NULL, - "Use levenshtein sorting also for fuzzy matching", CONFIG_DEFAULT }, + { xrm_String, "sorting-method", { .str = &config.sorting_method }, NULL, + "Choose the strategy used for sorting: normal (levenshtein) or fzf.", CONFIG_DEFAULT }, { xrm_Boolean, "case-sensitive", { .num = &config.case_sensitive }, NULL, "Set case-sensitivity", CONFIG_DEFAULT }, { xrm_Boolean, "cycle", { .num = &config.cycle }, NULL, |