From 161334c428a4d974aa3935478df49f29c3e3c125 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 15 May 2024 17:58:35 +0200 Subject: [PATCH] add dragon bind for lf --- .config/lf/lfrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 120b5aaab..d56ddebf9 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -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 quit map c push r # new rename -map &rm -rf -- $fx +map confirm_delete map d cut +map D &dragon-drop -a -x $fx map scroll-down map e :set user_multiedit "true" ; open; set user_multiedit "false" map E $sudo -e $f