summaryrefslogtreecommitdiffstats
path: root/source/xrmoptions.c
diff options
context:
space:
mode:
authorDave Davenport <DaveDavenport@users.noreply.github.com>2018-06-13 11:57:23 +0200
committerGitHub <noreply@github.com>2018-06-13 11:57:23 +0200
commitbdb6abef4a2b3cd3c02443038f43af74fd1bc987 (patch)
tree87bdccfad5df3647003c9b10cf094b0fe9293ddb /source/xrmoptions.c
parent9909fb3d7108c2cea200848d3e2a766f46be2f3b (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.c4
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,