diff --git a/dots/environment/environment b/dots/environment/environment index f8dda84..e77f38c 100644 --- a/dots/environment/environment +++ b/dots/environment/environment @@ -28,4 +28,5 @@ GTK_THEME=Sweet-Dark # secrets SECRET_KD3=RtKFWJIoXWjU80mlo4T4Ey2mqDNeJQwHjYLkE0ViN+k -EDITOR=nano +# used by lf +EDITOR=helix diff --git a/dots/lf/lfrc b/dots/lf/lfrc index e7105f7..9ddd339 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -63,9 +63,7 @@ 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/*) helix $fx;; -# text/*) lf -remote "send $id nano \$fx";; + text/*) lf -remote "send $id \$$EDITOR \$fx";; *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; esac }}