update example configuration

This commit is contained in:
Gokcehan 2019-03-20 21:45:09 +03:00
parent 6f35abb4ca
commit e3bc11408f

View File

@ -47,20 +47,24 @@ cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
map r push :rename<space> map r push :rename<space>
# make sure trash folder exists # make sure trash folder exists
%mkdir -p ~/.trash # %mkdir -p ~/.trash
# move current file or selected files to trash folder # move current file or selected files to trash folder
# (also see 'man mv' for backup/overwrite options) # (also see 'man mv' for backup/overwrite options)
cmd trash %set -f; mv $fx ~/.trash cmd trash %set -f; mv $fx ~/.trash
# delete current file or selected files (prompting) # define a custom 'delete' command
cmd delete ${{ # cmd delete ${{
set -f # set -f
printf "$fx\n" # printf "$fx\n"
printf "delete?[y/n]" # printf "delete?[y/n]"
read ans # read ans
[ $ans = "y" ] && rm -rf $fx # [ $ans = "y" ] && rm -rf $fx
}} # }}
# use '<delete>' key for either 'trash' or 'delete' command
# map <delete> trash
# map <delete> delete
# extract the current file with the right command # extract the current file with the right command
# (xkcd link: https://xkcd.com/1168/) # (xkcd link: https://xkcd.com/1168/)