diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-12 22:18:10 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-13 22:30:50 +0900 |
commit | aa10dccf900b5f0bdad475663f5dfe70757ea29d (patch) | |
tree | 08fe0b2e6273792362de6ce897f5b5eef4cb993d /CHANGELOG.md | |
parent | f4fd53211a9e3964818c2069aeff5464a679079f (diff) |
Support colon delimiter in ANSI escape sequences
# Both should work
printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi
printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi
This change makes ANSI parsing slightly slower.
cpu: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Before:
BenchmarkNextAnsiEscapeSequence-12 992.22 MB/s
BenchmarkExtractColor-12 174.35 MB/s
After:
BenchmarkNextAnsiEscapeSequence-12 925.05 MB/s
BenchmarkExtractColor-12 163.33 MB/s
Fix #2913
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 85ed43e9..3d2f8859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ CHANGELOG ========= +0.32.2 +------ +- ANSI color sequences with colon delimiters are now supported. + ```sh + printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi + printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi + ``` + 0.32.1 ------ - Fixed incorrect ordering of `--tiebreak=chunk` |