summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/lf/lfrc14
1 files changed, 11 insertions, 3 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index a99715a..0eaa9ea 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -1,9 +1,17 @@
-set hidden true
-set ignorecase true
+set shell sh
+set shellopts '-eu'
+set ifs "\n"
+set scrolloff 10
set previewer stpv
set cleaner stpvimgclr
&stpvimg --listen $id
cmd on-quit $stpvimg --end $id
-map . set hidden!
+cmd open ${{
+ test -L $f && f=$(readlink -f $f)
+ case $(file --mime-type $f -b) in
+ text/*) $EDITOR $fx;;
+ *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
+ esac
+}}