From d9c028c9343089f4cafb627e50e8bfc52fb8aea3 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 19 Jun 2024 19:25:46 +0900 Subject: [PATCH] fzf-preview.sh: Let chafa decide the right format Close #3822 Output encoding: -f, --format=FORMAT Set output format; one of [iterm, kitty, sixels, symbols]. Iterm, kitty and sixels yield much higher quality but enjoy limited support. Symbols mode yields beautiful character art. --- bin/fzf-preview.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fzf-preview.sh b/bin/fzf-preview.sh index 13beef8..dd01784 100755 --- a/bin/fzf-preview.sh +++ b/bin/fzf-preview.sh @@ -57,7 +57,7 @@ if [[ $KITTY_WINDOW_ID ]]; then # 2. Use chafa with Sixel output elif command -v chafa > /dev/null; then - chafa -f sixel -s "$dim" "$file" + chafa -s "$dim" "$file" # Add a new line character so that fzf can display multiple images in the preview window echo