Skip to content

Commit

Permalink
More explanation on man page
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Aug 23, 2024
1 parent 55ad5b1 commit 372236d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -1149,8 +1149,19 @@ with the given string. An anchored-match term is also an exact-match term.
.SS Exact\-boundary\-match (quoted both ends)
A single-quoted term is interpreted as an "exact\-boundary\-match". fzf will
search for the exact occurrences of the string with both ends at the word
boundaries. Unlike in regular expressions, this also sees an underscore as
a word boundary. But the words around underscores are ranked lower and appear
later in the result than the other words around the other types of word
boundaries.

1. xxx bar xxx (highest score)
.br
2. xxx bar_xxx
.br
3. xxx_bar xxx
.br
4. xxx_bar_xxx (lowest score)

.SS Negation
If a term is prefixed by \fB!\fR, fzf will exclude the lines that satisfy the
term from the result. In this case, fzf performs exact match by default.
Expand Down

0 comments on commit 372236d

Please sign in to comment.