/+ open csv files with onlyoffice

This commit is contained in:
committer@tuxwarrior
2025-04-01 09:54:30 -05:00
parent 98a6c5ff2c
commit 1c0e1f4717

View File

@@ -67,6 +67,7 @@ map X !$f
cmd open ${{
case "$f" in
*.[Cc][Ss][Vv]*) onlyoffice-desktopeditors $fx &;;
*.[Dd][Oo][Cc][Xx]*) onlyoffice-desktopeditors $fx &;;
*.[Gg][Ii][Ff]*) feh $fx &;;
*.[Jj][Pp][Gg]*) feh $fx &;;
@@ -76,10 +77,10 @@ cmd open ${{
*.[Pp][Nn][Gg]*) feh $fx &;;
*.[Rr][Pp][Pp]*) reaper $fx &;;
*.[Xx][Ll][Ss][Xx]*) onlyoffice-desktopeditors $fx &;;
*) case $(file --mime-type -Lb $f) in
text/*) nano $fx;;
*) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;
esac
*) case $(file --mime-type -Lb $f) in
text/*) nano $fx;;
*) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;
esac
esac
}}