Skip to content

Commit 6cabeb9

Browse files
committed
Merge branch 'main' of github.com:kamiyaa/joshuto
2 parents 651f277 + 2796e82 commit 6cabeb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/image_previews/kitty.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@ function image {
3030
"$1" 2>/dev/null
3131
}
3232

33+
function video {
34+
ffmpegthumbnailer -i "$1" -o "${TMP_FILE}" -s 0 2>/dev/null
35+
image "${TMP_FILE}"
36+
}
37+
3338
case "$mimetype" in
3439
image/*)
3540
image "${FILE_PATH}"
3641
;;
42+
*)
43+
video/*)
44+
video "${FILE_PATH}"
45+
;;
3746
*)
3847
kitty +kitten icat \
3948
--transfer-mode=file \

0 commit comments

Comments
 (0)