mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Added tar.gz preview capability
Added tar.gz preview capability, that was missing. Only zip were supported.
This commit is contained in:
parent
d6616cf08b
commit
d5c1239674
@ -27,6 +27,7 @@ case "$(file --dereference --brief --mime-type -- "$1")" in
|
|||||||
text/troff) man ./ "$1" | col -b ;;
|
text/troff) man ./ "$1" | col -b ;;
|
||||||
text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;;
|
text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;;
|
||||||
application/zip) atool --list -- "$1" ;;
|
application/zip) atool --list -- "$1" ;;
|
||||||
|
application/gzip) atool --list -- "$1" ;;
|
||||||
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
|
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
|
||||||
video/* )
|
video/* )
|
||||||
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user