This commit is contained in:
Nicole Dresselhaus
2025-06-04 10:13:16 +02:00
parent 8e7058f4b2
commit 9ab97a7867
6 changed files with 166 additions and 11 deletions

View File

@ -10,15 +10,18 @@ h="$3"
x="$4"
y="$5"
case "$(file -Lb --mime-type "$file")" in
image/*)
draw "$file"
;;
video/*)
# vidthumb is from here:
# https://raw.githubusercontent.com/duganchen/kitty-pistol-previewer/main/vidthumb
draw "$(vidthumb "$file")"
;;
case "$(file -Lb --mime-type "$file")" in
image/*)
draw "$file"
;;
video/*)
# vidthumb is from here:
# https://raw.githubusercontent.com/duganchen/kitty-pistol-previewer/main/vidthumb
draw "$(vidthumb "$file")"
;;
text/*)
mdcat --columns "$(($4 * 7 / 9))" "$1"
;;
esac
pistol "$file"