*
*
This commit is contained in:
@ -17,12 +17,12 @@ cmd open ${{
|
||||
*.kra|*.krz|*.ora) setsid -f krita $f >/dev/null 2>&1 && exit 0 ;;
|
||||
*.xlsx) setsid -f libreoffice $f >/dev/null 2>&1 && exit 0 ;;
|
||||
*.sc) sc-im $f && exit 0;;
|
||||
*.org) setsid -f em $f >/dev/null 2>&1 && exit 0 ;;
|
||||
#*.org) setsid -f $EDITOR $f >/dev/null 2>&1 && exit 0 ;;
|
||||
esac
|
||||
case $(file --mime-type "$(readlink -f $f)" -b) in
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
||||
image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
||||
text/*|application/json|inode/x-empty) em $fx;;
|
||||
text/*|application/json|inode/x-empty) $EDITOR $fx;;
|
||||
image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||
image/svg+xml) display -- $f ;;
|
||||
image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" |
|
||||
|
@ -53,7 +53,8 @@ case "$(file --dereference --brief --mime-type -- "$1")" in
|
||||
mediainfo "$1";;
|
||||
text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
|
||||
text/troff) man ./ "$1" | col -b ;;
|
||||
text/* | */xml | application/json) bat -p --terminal-width "$(($4-2))" -f "$1" ;;
|
||||
text/* | */xml | application/json) highlight --out-format=ansi --width "$(($4-2))" "$1" ;;
|
||||
#text/* | */xml | application/json) bat -p --terminal-width "$(($4-2))" -f "$1" ;;
|
||||
audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
|
||||
video/* )
|
||||
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)"
|
||||
|
Reference in New Issue
Block a user