From 4543fcbacc3f5687013ef711fc4372bc28dc6408 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 1 Apr 2025 09:49:26 -0500 Subject: [PATCH] /+ open xlxs files with onlyoffice --- dots/lf/lfrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 3c43fee..f66aa4d 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -53,14 +53,15 @@ map X !$f # define a custom 'open' command # 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 -# text files and a file opener for the rest. -#cmd open &{{ +# use either file extensions and/or mime types here. Below example uses an +# editor for text files and a file opener for the rest: +# +# cmd open &{{ # case $(file --mime-type -Lb $f) in # text/*) lf -remote "send $id \$$EDITOR \$fx";; # *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; # esac -#}} +# }} cmd open ${{ @@ -78,6 +79,7 @@ cmd open ${{ text/*) nano $fx;; *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; esac + *.[Xx][Ll][Ss][Xx]*) onlyoffice-desktopeditors $fx &;; esac }}