diff options
-rwxr-xr-x | ranger/data/scope.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 1fde1de5..56ec51fb 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -83,6 +83,7 @@ handle_extension() { odt|ods|odp|sxw) ## Preview as text conversion odt2txt "${FILE_PATH}" && exit 5 + pandoc -s -t markdown "${FILE_PATH}" && exit 5 exit 1;; ## ODT (using pandoc) @@ -102,7 +103,7 @@ handle_extension() { ## DOCX, EPUB, FB2 (using pandoc) ## you might want to remove EPUB and/or FB2 if you have uncommented ## other methods to preview those formats - docx|epub|fb2) + docx) ## Preview as markdown conversion pandoc -s -t markdown "${FILE_PATH}" && exit 5 exit 1;; @@ -207,6 +208,12 @@ handle_image() { # >/dev/null && exit 6 # exit 1;; + # ePub, FB2 (using pandoc) + # epub|fb2) + # # Preview as markdown conversion + # pandoc -s -t markdown "${FILE_PATH}" && exit 5 + # exit 1;; + ## Font application/font*|application/*opentype) preview_png="/tmp/$(basename "${IMAGE_CACHE_PATH%.*}").png" |