Add support for text styling using --color

Close #1663
This commit is contained in:
Junegunn Choi
2020-10-25 19:29:37 +09:00
parent 03c4f04246
commit 11841f688b
12 changed files with 502 additions and 347 deletions

View File

@@ -15,6 +15,13 @@ CHANGELOG
sleep 0.01
done'
```
- Extended color specification: supports text styles
- `regular` / `bold` / `dim` / `underline` / `italic` / `reverse` / `blink`
```sh
rg --line-number --no-heading --color=always "" |
fzf --ansi --prompt "Rg: " \
--color fg+:italic,hl:underline:-1,hl+:reverse:-1,prompt:reverse
```
- To indicate if `--multi` mode is enabled, fzf will print the number of
selected items even when no item is selected
```sh