mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-27 23:36:29 +00:00
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:
parent
c54ad82e8d
commit
d9c028c934
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user