1
0
Fork 0

change open command in lf

This commit is contained in:
Luca Bilke 2024-02-05 16:50:26 +01:00
parent fbf03c843c
commit fab92980c7

View file

@ -13,7 +13,7 @@ set promptfmt "\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m%d\033[35m]\033
# This might seem awkward, but it it needed to trigger the open for the taolf nvim plugin
cmd open ${{
set +u
[ "$lf_user_multiopen" = "true" ] && { $OPENER $fx; return; }
[ "$lf_user_multiedit" = "true" ] && { $EDITOR $fx; return; }
$OPENER "$f"
}}
@ -230,7 +230,7 @@ map n &echo $f | xclip -r -selection c
map <esc> quit
map g/ cd "/"
map W new_lf_term
map e :set user_multiopen "true" ; open; set user_multiopen "false"
map e :set user_multiedit "true" ; open; set user_multiedit "false"
map E $sudo -e $f
map R $lf -remote "send $id :select \"$(readlink $f)\""