diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-26 00:15:30 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-10-26 00:15:30 +0900 |
commit | 8b0e3b1624a3957afb26aaee074a4faf637fe549 (patch) | |
tree | 18b5f22c41965e729bfcb164fd217d8a6d059986 | |
parent | 9b946f2b7a39f9b552f8f4788c3e1a7bb4182bc4 (diff) |
Update --color docs
-rw-r--r-- | CHANGELOG.md | 9 | ||||
-rw-r--r-- | man/man1/fzf.1 | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 075c85b4..9863d656 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/man/man1/fzf.1 b/man/man1/fzf.1 index b8898f3e..da2642eb 100644 --- a/man/man1/fzf.1 +++ b/man/man1/fzf.1 @@ -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: |