/+ open csv files with onlyoffice
This commit is contained in:
@@ -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
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user