summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorMarie-Helene Burle <msb2@sfu.ca>2019-06-01 11:01:08 -0700
committertoonn <toonn@toonn.io>2019-12-30 21:16:38 +0100
commitf090ef18c29ba5de0098ad54f87f84ef6f536086 (patch)
treef9cd965e112d3cdb6a3e97d10eca8480893f4f0c /ranger
parent6dd43b8854affba979b75783d84b06aa15ca915b (diff)
downloadranger-f090ef18c29ba5de0098ad54f87f84ef6f536086.tar.gz
Move pandoc support for ePub and FB2 back to handle_extension()
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index bad000a3..bf8cdd36 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -104,7 +104,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)
+	docx|epub|fb2)
 	    ## Preview as markdown conversion
 	    pandoc -s -t markdown "${FILE_PATH}" && exit 5
 	    exit 1;;
@@ -209,13 +209,6 @@ 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"
             if fontimage -o "${preview_png}" \