1
0
Fork 0

add dragon bind for lf

This commit is contained in:
Luca Bilke 2024-05-15 17:58:35 +02:00
parent cb44e8604b
commit 161334c428
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 9 additions and 1 deletions

View File

@ -210,6 +210,12 @@ cmd new_lf_term &{{
$TERMINAL -e lfX -command "$mapcmd"
}}
cmd confirm_delete %{{
echo Delete? [y/N] && read -r v
echo
[ "$v" = y ] && rm -rf -- $fx
}}
on-cd
# Basic vars
@ -244,6 +250,7 @@ map '"' mark-remove
map "$" shell
map "!" shell-wait
map "&" shell-async
map "%" shell-pipe
map ";" find-next
map "," find-prev
map "/" search
@ -253,8 +260,9 @@ map b dupe
map B bulkrename
map <c-c> quit
map c push r<c-u> # new rename
map <c-d> &rm -rf -- $fx
map <c-d> confirm_delete
map d cut
map D &dragon-drop -a -x $fx
map <c-e> scroll-down
map e :set user_multiedit "true" ; open; set user_multiedit "false"
map E $sudo -e $f