From 888a8d66b07791677dad56efb1ce8f6ef230bb54 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Tue, 13 May 2025 13:43:08 -0500 Subject: [PATCH] / trash-confirm possible done --- dots/lf/lfrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dots/lf/lfrc b/dots/lf/lfrc index d09e33d..f7450d8 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -36,8 +36,8 @@ set cleaner ctpvclear # -------------------- # map # -------------------- -map :push trash-confirm # use '' key for 'trash' -#map trash # use '' key for 'trash' +map trash-confirm # use '' key for 'trash' +map trash map shell # use enter for shell commands map :unselect; clear # clear all selected map ` !true # show the result of execution of previous commands @@ -114,11 +114,12 @@ cmd recol %{{ # (also see 'man mv' for backup/overwrite options) #cmd trash %set -f; mv $fx ~/.trash # $f: single file, $fx: multiple files + # https://github.com/gokcehan/lf/issues/45#issuecomment-260347057 -#cmd trash %tp.sh "$fx" +cmd trash %tp.sh "$fx" cmd trash-confirm ${{ - echo 'delete?[y/n]' + echo 'delete? [y/n]' read ans [ $ans = 'y' ] && trash %tp.sh "$fx" || echo 'cancelled' }}