about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Reed <michaelreed@crucialflow.com>2018-10-23 13:10:15 -0400
committerMichael Reed <michaelreed@crucialflow.com>2018-10-23 13:10:15 -0400
commitc4b84b010527ae40aec865b46393effbdde67385 (patch)
tree0770a48073e4a9b14492dcfe50d21ee0266c6495
parent16949531f739ccf0cbf8ae543e7282de4291e165 (diff)
downloadranger-c4b84b010527ae40aec865b46393effbdde67385.tar.gz
added support for DJVU text conversion
-rwxr-xr-xranger/data/scope.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 13a25b45..dfc55aef 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -94,6 +94,13 @@ handle_image() {
         #     convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
         #     exit 1;;
 
+		# DJVU
+        image/vnd.djvu)
+            # Preview as text conversion
+            djvutxt "${FILE_PATH}" && exit 5
+            exiftool "${FILE_PATH}" && exit 5
+            exit 1;;
+
         # Image
         image/*)
             local orientation