diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-01-15 08:23:54 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-01-15 08:23:54 -0500 |
| commit | 9385a569fe356db706ed268a87e77cfa760d58dd (patch) | |
| tree | 2c8d3b6e3e72f6dd2e211a5cf380baf301d2f545 /.config/lf | |
| parent | 5c52bd63394aafbb93b6713b74c148e5a4ec17c7 (diff) | |
| parent | 5c262da7c39fb0b3cd52acca36f45d4e7c629d37 (diff) | |
| download | eibhear-9385a569fe356db706ed268a87e77cfa760d58dd.tar.gz eibhear-9385a569fe356db706ed268a87e77cfa760d58dd.tar.zst eibhear-9385a569fe356db706ed268a87e77cfa760d58dd.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.config/lf')
| -rw-r--r-- | .config/lf/lfrc | 6 | ||||
| -rwxr-xr-x | .config/lf/scope | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 01d17f8..c0c4766 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -43,7 +43,7 @@ cmd open ${{ ;; audio/*|video/x-ms-asf) mpv --audio-display=no $f ;; video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; - application/pdf|application/vnd*|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;; + application/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;; application/pgp-encrypted) $EDITOR $fx ;; application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text) setsid -f lowriter $fx >/dev/null 2>&1 ;; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template) setsid -f localc $fx >/dev/null 2>&1 ;; @@ -115,8 +115,8 @@ map <c-s> set hidden! map <enter> shell map x $$f map X !$f -map o &mimeopen $f -map O $mimeopen --ask $f +map o &mimeopen "$f" +map O $mimeopen --ask "$f" map A rename # at the very end map c push A<c-u> # new rename diff --git a/.config/lf/scope b/.config/lf/scope index f91fd84..1d83527 100755 --- a/.config/lf/scope +++ b/.config/lf/scope @@ -26,7 +26,6 @@ case "$(file --dereference --brief --mime-type -- "$1")" in text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; text/troff) man ./ "$1" | col -b ;; text/* | */xml | application/json) bat --terminal-width "$(($4-2))" -f "$1" ;; - application/zip) atool --list -- "$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)" @@ -43,6 +42,7 @@ case "$(file --dereference --brief --mime-type -- "$1")" in [ ! -f "$CACHE.jpg" ] && gnome-epub-thumbnailer "$1" "$CACHE.jpg" image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;; + application/*zip) atool --list -- "$1" ;; *opendocument*) odt2txt "$1" ;; application/pgp-encrypted) gpg -d -- "$1" ;; esac |
