From: Samir Benmendil Date: Mon, 18 Jan 2021 00:04:11 +0000 (+0000) Subject: ranger: add preview for zip files X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/0716bcc1f67f9f8caebc6788454cd4171a08414b?ds=inline ranger: add preview for zip files --- diff --git a/ranger/scope.sh b/ranger/scope.sh index 1619d9c..92eca15 100755 --- a/ranger/scope.sh +++ b/ranger/scope.sh @@ -68,6 +68,7 @@ case "$extension" in 7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\ rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip) try tar taf "$path" && { dump | trim; exit 0; } + try unzip -l "$path" && { dump | trim; exit 3; } try als "$path" && { dump | trim; exit 0; } try acat "$path" && { dump | trim; exit 3; } try bsdtar -lf "$path" && { dump | trim; exit 0; }