This commit is contained in:
committer@tuxwarrior
2024-10-07 17:36:23 -05:00
parent 11ff3102d7
commit 3f91abc43a

View File

@@ -66,13 +66,13 @@ map X !$f
cmd open ${{ cmd open ${{
case "$f" in case "$f" in
*.[Dd][Oo][Cc][Xx]*) onlyoffice-desktopeditor $fx;; *.[Dd][Oo][Cc][Xx]*) onlyoffice-desktopeditor $fx &;;
*.[Gg][Ii][Ff]*) feh $fx &;; *.[Gg][Ii][Ff]*) feh $fx &;;
*.[Jj][Pp][Gg]*) feh $fx &;; *.[Jj][Pp][Gg]*) feh $fx &;;
*.[Jj][Pp][Ee][Gg]*) feh $fx &;; *.[Jj][Pp][Ee][Gg]*) feh $fx &;;
*.[Pp][Dd][Ff]*) mupdf $fx &;; *.[Pp][Dd][Ff]*) mupdf $fx &;;
*.[Pp][Nn][Gg]*) feh $fx &;; *.[Pp][Nn][Gg]*) feh $fx &;;
*.[Rr][Pp][Pp]*) reaper $fx;; *.[Rr][Pp][Pp]*) reaper $fx &;;
*) case $(file --mime-type -Lb $f) in *) case $(file --mime-type -Lb $f) in
text/*) helix $fx;; text/*) helix $fx;;
*) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;