From e7718b92b7a79903bd945244560f1c8015f64ced Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 17 Jan 2024 00:13:14 +0900 Subject: 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 --- bin/fzf-preview.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3