2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-18 09:28:40 +00:00

Update --color docs

This commit is contained in:
Junegunn Choi 2020-10-26 00:15:30 +09:00
parent 9b946f2b7a
commit 8b0e3b1624
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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: