about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorNici <NiciTheNici@protonmail.com>2022-02-13 18:50:30 +0100
committerNici <NiciTheNici@protonmail.com>2022-02-13 18:50:30 +0100
commit93ace2a4b6e9788adecd690020dc57e576c608cd (patch)
tree7e1f6bbc5db1f4e5468d252e58282b8962847be3 /ranger
parent7a5f820e760c7ce2f93e2a5f0e91677b46252ea9 (diff)
downloadranger-93ace2a4b6e9788adecd690020dc57e576c608cd.tar.gz
add drawio Image-Preview
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/data/scope.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 864e39ab..9c27bc91 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -49,7 +49,7 @@ OPENSCAD_COLORSCHEME="${RNGR_OPENSCAD_COLORSCHEME:-Tomorrow Night}"
 
 handle_extension() {
     case "${FILE_EXTENSION_LOWER}" in
-        ## Archive
+	## Archive
         a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
         rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
             atool --list -- "${FILE_PATH}" && exit 5
@@ -90,6 +90,11 @@ handle_extension() {
             ## Preview as text conversion (unsupported by pandoc for markdown)
             odt2txt "${FILE_PATH}" && exit 5
             exit 1;;
+		
+#       drawio)
+#           ## Preview as image
+#           draw.io -x "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" --width 1920 && exit 6
+#           exit 1;;
 
         ## XLSX
         xlsx)