Skip to content

Commit

Permalink
Update --color docs
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Oct 25, 2020
1 parent 9b946f2 commit 8b0e3b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ CHANGELOG
sleep 0.01
done'
```
- Extended color specification: supports text styles
- Updated `--color` option to support text styles
- `regular` / `bold` / `dim` / `underline` / `italic` / `reverse` / `blink`
```sh
# * Set -1 to keep the original color
# * Multiple style attributes can be combined
# * Italic style may not be supported by some terminals
rg --line-number --no-heading --color=always "" |
fzf --ansi --prompt "Rg: " \
--color fg+:italic,hl:underline:-1,hl+:reverse:-1,prompt:reverse
--color fg+:italic,hl:underline:-1,hl+:underline:reverse:-1 \
--color pointer:underline:reverse,prompt:reverse \
--pointer ' '
```
- To indicate if `--multi` mode is enabled, fzf will print the number of
selected items even when no item is selected
Expand Down
3 changes: 2 additions & 1 deletion man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ color mappings.
\fBregular \fRClears previously set attributes; should precede the other ones
\fBbold\fR
\fBunderline\fR
\fBitalic\fR
\fBreverse\fR
\fBdim\fR
\fBitalic\fR

.B EXAMPLES:

Expand Down

0 comments on commit 8b0e3b1

Please sign in to comment.