Skip to content

Commit

Permalink
[man] Clarification on --scheme options
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Jun 5, 2024
1 parent df8fd08 commit 8ca6df7
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,32 @@ Do not normalize latin script letters for matching.
.BI "--scheme=" SCHEME
Choose scoring scheme tailored for different types of input.

.br
.BR default " Generic scoring scheme designed to work well with any type of input"
.br
.BR path " Scoring scheme well suited for file paths
.br
.BR history " Scoring scheme well suited for command history or any input where chronological ordering is important
Sets \fB--tiebreak=index\fR as well.
.br
.RS
.B default
.RS
Generic scoring scheme designed to work well with any type of input.
.RE
.RE

.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
.BI "--algo=" TYPE
Fuzzy matching algorithm (default: v2)
Expand Down

0 comments on commit 8ca6df7

Please sign in to comment.