This commit is contained in:
committer@tuxwarrior
2025-05-13 14:01:47 -05:00
parent ff3825e487
commit 0baca7cc8e

View File

@@ -117,11 +117,15 @@ cmd recol %{{
# https://github.com/gokcehan/lf/issues/45#issuecomment-260347057 # https://github.com/gokcehan/lf/issues/45#issuecomment-260347057
cmd trash %tp.sh "$fx" cmd trash %tp.sh "$fx"
# IFS=':'; echo $fs | tr " " "\n"
cmd trash-confirm ${{ cmd trash-confirm ${{
IFS=':'; echo $fs | tr " " "\n" echo $f
echo $fx
echo $fs
echo 'delete "$f $fx"? [y/n]' echo 'delete "$f $fx"? [y/n]'
read ans read ans
[ $ans = 'y' ] && trash %tp.sh "$fx" || echo 'cancelled' [ $ans = 'y' ] && (echo 'deleting files…' && trash %tp.sh "$fx") || echo 'cancelled'
}} }}
# extract the current file with the right command (https://xkcd.com/1168/) # extract the current file with the right command (https://xkcd.com/1168/)