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.
This commit is contained in:
Junegunn Choi 2024-06-19 19:25:46 +09:00
parent c54ad82e8d
commit d9c028c934
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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