From 0716bcc1f67f9f8caebc6788454cd4171a08414b Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 18 Jan 2021 00:04:11 +0000 Subject: [PATCH] ranger: add preview for zip files --- ranger/scope.sh | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.48.1