summaryrefslogtreecommitdiff
path: root/lf/scope
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:33 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2022-04-17 10:46:33 -0500
commit06b0c7eb739fd430aacbb46f183cea4aaf17300a (patch)
treeb87398a7ed71ed22d4c43c42f274fbff12c1d578 /lf/scope
parentaff2302d113a71aee647ab71336e8d68bb844653 (diff)
downloaddotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.tar.xz
dotconfig-06b0c7eb739fd430aacbb46f183cea4aaf17300a.zip
small changes to zsh and st configsa
Diffstat (limited to 'lf/scope')
-rwxr-xr-xlf/scope5
1 files changed, 5 insertions, 0 deletions
diff --git a/lf/scope b/lf/scope
index 4058543..39fdfef 100755
--- a/lf/scope
+++ b/lf/scope
@@ -26,6 +26,11 @@ ifub() {
# be regenerated once seen.
case "$(file --dereference --brief --mime-type -- "$1")" in
+ image/svg+xml)
+ gencacheimage "$1" ".png"
+ [ ! -f "$CACHE" ] && convert -background none "$1" "$CACHE"
+ image "$CACHE" "$2" "$3" "$4" "$5"
+ ;;
image/*) image "$1" "$2" "$3" "$4" "$5" ;;
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
text/troff) man ./ "$1" | col -b ;;