From 3eaca4d59031653a5aa3d33cfe718160b8e1e5dd Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 29 Oct 2014 08:48:32 +0100 Subject: [PATCH] Ranger: Disable compresed tar archive preview This is too slow. --- .config/ranger/scope.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 6de65496..90a94107 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -44,8 +44,10 @@ highlight() { command highlight "$@"; test $? = 0 -o $? = 141; } case "$extension" in # Archive extensions: - 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) + # We ignore compressed tared files as it is too slow. + # bz|bz2|t7z|tbz|tbz2|tgz|tlz|txz|tZ|xz|gz| + a|ace|alz|arc|arj|cab|cpio|deb|jar|lha|lz|lzh|lzma|lzo|\ + rpm|rz|tar|tzo|war|xpi|Z|zip) try als "$path" && { dump | trim; exit 0; } try acat "$path" && { dump | trim; exit 3; } try bsdtar -lf "$path" && { dump | trim; exit 0; }