diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2024-01-17 00:13:14 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-01-17 00:17:22 +0900 |
commit | e7718b92b7a79903bd945244560f1c8015f64ced (patch) | |
tree | 260dbea61700f58f8ad7ce7aa5acdb83d349869c /bin | |
parent | cdfaf761df2e68503ca7c74c0aaa3e6fa4a46bda (diff) |
Kitty image support improvements
* Use `--unicode-placeholder` for consistent result in and out of tmux
* Use updated version of junegunn/go-runewidth that handles diacritics
used in Kitty Unicode placeholder
Close #3567
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fzf-preview.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fzf-preview.sh b/bin/fzf-preview.sh index 09cdda7c..13beef8f 100755 --- a/bin/fzf-preview.sh +++ b/bin/fzf-preview.sh @@ -53,7 +53,7 @@ if [[ $KITTY_WINDOW_ID ]]; then # 2. The last line of the output is the ANSI reset code without newline. # This confuses fzf and makes it render scroll offset indicator. # So we remove the last line and append the reset code to its previous line. - kitty icat --clear --transfer-mode=memory --stdin=no --place="$dim@0x0" "$file" | sed '$d' | sed $'$s/$/\e[m/' + kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place="$dim@0x0" "$file" | sed '$d' | sed $'$s/$/\e[m/' # 2. Use chafa with Sixel output elif command -v chafa > /dev/null; then |