From 126fd0fb51ff743096bd1641330a9ad0eec7c580 Mon Sep 17 00:00:00 2001 From: committer Date: Fri, 31 May 2024 16:12:00 -0500 Subject: [PATCH] u --- dots/lf/lfrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 43152ff..3fd4782 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -63,11 +63,20 @@ cmd cds :cd /home/poq/syncDir # 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";; +# text/*) lf -remote "send $id \$$EDITOR \$fx";; + text/*) helix \$fx";; *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; esac }} +#cmd open ${{ +# test -L $f && f=$(readlink -f $f) +# case $(file --mime-type $f -b) in +# text/*) geany $fx;; +# *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; +# esac +# }} + # define a custom 'rename' command without prompt for overwrite # cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 # map r push :rename