From b462c1f30b1d693c98e51800f616da799a09ada3 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 2 Jul 2014 19:36:59 +0200 Subject: [PATCH] ranger: Fix garbled scope --- .config/ranger/scope.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index c13cf649..6de65496 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -70,22 +70,23 @@ case "$extension" in ;; # fall back to highlight/cat if the text browsers fail ## CUSTOM SUPPORT - ogg) + ogg) try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;; - mkv) + mkv) try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;; - doc) - try antiword "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;; + doc) + try antiword "$path" && { dump | trim | fmt -s -w $width; exit 0; } try catdoc "$path" && { dump | trim | fmt -s -w $width; exit 0; } - docx) + exit 1;; + docx) try docx2txt.pl "$path" - && { dump | trim | fmt -s -w $width; exit 0; } try catdoc "$path" && { dump | trim | fmt -s -w $width; exit 0; } exit 1;; - rtf) + rtf) try unrtf --text "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;; - odt) + odt) try odt2txt "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;; - tga) + tga) try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;; esac