/+ open xlxs files with onlyoffice
This commit is contained in:
10
dots/lf/lfrc
10
dots/lf/lfrc
@@ -53,14 +53,15 @@ map X !$f
|
|||||||
|
|
||||||
# define a custom 'open' command
|
# define a custom 'open' command
|
||||||
# This command is called when current file is not a directory. You may want to
|
# This command is called when current file is not a directory. You may want to
|
||||||
# use either file extensions and/or mime types here. Below uses an editor for
|
# use either file extensions and/or mime types here. Below example uses an
|
||||||
# text files and a file opener for the rest.
|
# editor for text files and a file opener for the rest:
|
||||||
#cmd open &{{
|
#
|
||||||
|
# cmd open &{{
|
||||||
# case $(file --mime-type -Lb $f) in
|
# case $(file --mime-type -Lb $f) in
|
||||||
# text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
# text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
||||||
# *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
|
# *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||||
# esac
|
# esac
|
||||||
#}}
|
# }}
|
||||||
|
|
||||||
|
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
@@ -78,6 +79,7 @@ cmd open ${{
|
|||||||
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
|
||||||
|
*.[Xx][Ll][Ss][Xx]*) onlyoffice-desktopeditors $fx &;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user