[man] Clarification on --scheme options

This commit is contained in:
Junegunn Choi 2024-06-05 10:34:44 +09:00
parent ef148dfd37
commit dc73fba188
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -61,14 +61,32 @@ Do not normalize latin script letters for matching.
.BI "--scheme=" SCHEME .BI "--scheme=" SCHEME
Choose scoring scheme tailored for different types of input. Choose scoring scheme tailored for different types of input.
.br .RS
.BR default " Generic scoring scheme designed to work well with any type of input" .B default
.br .RS
.BR path " Scoring scheme well suited for file paths Generic scoring scheme designed to work well with any type of input.
.br .RE
.BR history " Scoring scheme well suited for command history or any input where chronological ordering is important .RE
Sets \fB--tiebreak=index\fR as well.
.br .RS
.B path
.RS
Additional bonus point is only given to the characters after path separator.
You might want to choose this scheme over \fBdefault\fR if you have many files
with spaces in their paths.
.RE
.RE
.RS
.B history
.RS
Scoring scheme well suited for command history or any input where chronological
ordering is important. No additional bonus points are given so that we give
more weight to the chronological ordering. This also sets
\fB--tiebreak=index\fR.
.RE
.RE
.TP .TP
.BI "--algo=" TYPE .BI "--algo=" TYPE
Fuzzy matching algorithm (default: v2) Fuzzy matching algorithm (default: v2)