restore delete command

This commit is contained in:
Ray Elliott 2020-07-13 21:21:27 +01:00
parent 2f56742739
commit e53641d158
1 changed files with 8 additions and 8 deletions

16
lfrc
View File

@ -55,17 +55,17 @@ cmd open ${{
cmd trash %set -f; mv $fx ~/.trash
# define a custom 'delete' command
# cmd delete ${{
# set -f
# printf "$fx\n"
# printf "delete?[y/n]"
# read ans
# [ $ans = "y" ] && rm -rf $fx
# }}
cmd delete ${{
set -f
printf "$fx\n"
printf "delete?[y/n]"
read ans
[ $ans = "y" ] && rm -rf $fx
}}
# use '<delete>' key for either 'trash' or 'delete' command
# map <delete> trash
# map <delete> delete
map <delete> delete
# extract the current file with the right command
# (xkcd link: https://xkcd.com/1168/)