/+ open csv files with onlyoffice
This commit is contained in:
@@ -67,6 +67,7 @@ map X !$f
|
|||||||
cmd open ${{
|
cmd open ${{
|
||||||
|
|
||||||
case "$f" in
|
case "$f" in
|
||||||
|
*.[Cc][Ss][Vv]*) onlyoffice-desktopeditors $fx &;;
|
||||||
*.[Dd][Oo][Cc][Xx]*) onlyoffice-desktopeditors $fx &;;
|
*.[Dd][Oo][Cc][Xx]*) onlyoffice-desktopeditors $fx &;;
|
||||||
*.[Gg][Ii][Ff]*) feh $fx &;;
|
*.[Gg][Ii][Ff]*) feh $fx &;;
|
||||||
*.[Jj][Pp][Gg]*) feh $fx &;;
|
*.[Jj][Pp][Gg]*) feh $fx &;;
|
||||||
@@ -76,10 +77,10 @@ cmd open ${{
|
|||||||
*.[Pp][Nn][Gg]*) feh $fx &;;
|
*.[Pp][Nn][Gg]*) feh $fx &;;
|
||||||
*.[Rr][Pp][Pp]*) reaper $fx &;;
|
*.[Rr][Pp][Pp]*) reaper $fx &;;
|
||||||
*.[Xx][Ll][Ss][Xx]*) onlyoffice-desktopeditors $fx &;;
|
*.[Xx][Ll][Ss][Xx]*) onlyoffice-desktopeditors $fx &;;
|
||||||
*) case $(file --mime-type -Lb $f) in
|
*) case $(file --mime-type -Lb $f) in
|
||||||
text/*) nano $fx;;
|
text/*) nano $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;;
|
||||||
esac
|
esac
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user