about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorMarie-Helene Burle <msb2@sfu.ca>2019-06-01 10:27:01 -0700
committertoonn <toonn@toonn.io>2019-12-30 21:16:38 +0100
commitf6d7d5ca4b07f7d8687e3121877f329d1c64d791 (patch)
tree23286f25db2d682c60ffda232e0ad336d716a5a2 /ranger
parent600347778cddcbaf3f7b0ff5924fdec94fe501de (diff)
downloadranger-f6d7d5ca4b07f7d8687e3121877f329d1c64d791.tar.gz
Add pandoc support for odt, epub, and fb2
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 2cba7d0e..1fde1de5 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -85,6 +85,12 @@ handle_extension() {
             odt2txt "${FILE_PATH}" && exit 5
             exit 1;;
 
+	## ODT (using pandoc)
+        # odt)
+        #     # Preview as markdown conversion
+        #     pandoc -s -t markdown "${FILE_PATH}" && exit 5
+        #     exit 1;;
+
 	## RTF and DOC
 	rtf|doc)
 	    ## Preview as text conversion
@@ -93,8 +99,10 @@ handle_extension() {
 	    catdoc "${FILE_PATH}" && exit 5
 	    exit 1;;
 
-	## DOCX
-	docx)
+	## 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)
 	    ## Preview as markdown conversion
 	    pandoc -s -t markdown "${FILE_PATH}" && exit 5
 	    exit 1;;