From 9da2b4c79323a3f34da8d54198364d549a29ff00 Mon Sep 17 00:00:00 2001 From: Shervin Sahba Date: Mon, 13 Dec 2021 01:11:50 -0800 Subject: broke up cases for OpenOffice docs, so ods/odp files would not use pandoc --- ranger/data/scope.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ranger') diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 044b3f53..0c003399 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -80,12 +80,16 @@ handle_extension() { exit 1;; ## OpenDocument - odt|ods|odp|sxw) + odt|sxw) ## Preview as text conversion odt2txt "${FILE_PATH}" && exit 5 ## Preview as markdown conversion pandoc -s -t markdown -- "${FILE_PATH}" && exit 5 exit 1;; + ods|odp) + ## Preview as text conversion (unsupported by pandoc for markdown) + odt2txt "${FILE_PATH}" && exit 5 + exit 1;; ## XLSX xlsx) -- cgit 1.4.1-2-gfad0