Sort subcommands by levenshtein distance
This commit is contained in:
parent
8cec0006aa
commit
0bdb57553c
|
@ -201,7 +201,7 @@ impl Completer for CommandCompletion {
|
|||
return sort_suggestions(
|
||||
&String::from_utf8_lossy(&prefix),
|
||||
subcommands,
|
||||
SortBy::Ascending,
|
||||
SortBy::LevenshteinDistance,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user