mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-09 09:50:26 +00:00
Update --color docs
This commit is contained in:
parent
9b946f2b7a
commit
8b0e3b1624
@ -15,12 +15,17 @@ CHANGELOG
|
|||||||
sleep 0.01
|
sleep 0.01
|
||||||
done'
|
done'
|
||||||
```
|
```
|
||||||
- Extended color specification: supports text styles
|
- Updated `--color` option to support text styles
|
||||||
- `regular` / `bold` / `dim` / `underline` / `italic` / `reverse` / `blink`
|
- `regular` / `bold` / `dim` / `underline` / `italic` / `reverse` / `blink`
|
||||||
```sh
|
```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 "" |
|
rg --line-number --no-heading --color=always "" |
|
||||||
fzf --ansi --prompt "Rg: " \
|
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
|
- To indicate if `--multi` mode is enabled, fzf will print the number of
|
||||||
selected items even when no item is selected
|
selected items even when no item is selected
|
||||||
|
@ -309,8 +309,9 @@ color mappings.
|
|||||||
\fBregular \fRClears previously set attributes; should precede the other ones
|
\fBregular \fRClears previously set attributes; should precede the other ones
|
||||||
\fBbold\fR
|
\fBbold\fR
|
||||||
\fBunderline\fR
|
\fBunderline\fR
|
||||||
\fBitalic\fR
|
|
||||||
\fBreverse\fR
|
\fBreverse\fR
|
||||||
|
\fBdim\fR
|
||||||
|
\fBitalic\fR
|
||||||
|
|
||||||
.B EXAMPLES:
|
.B EXAMPLES:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user