From 715b5aa0bc42fab32bf0389b971149280e54b594 Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 18 Mar 2022 18:55:00 +0100 Subject: scope: Fix draw.io width and enable by default --- ranger/data/scope.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 003ce65b..5e0e66ac 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -274,10 +274,10 @@ handle_image() { # 3mf|amf|dxf|off|stl) # openscad_image <(echo "import(\"${FILE_PATH}\");") && exit 6 # ;; - # drawio) - # draw.io -x "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" --width 1920 && exit 6 - # exit 1;; - + drawio) + draw.io -x "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" \ + --width "${DEFAULT_SIZE%x*}" && exit 6 + exit 1;; esac } -- cgit 1.4.1-2-gfad0