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>
# make sure trash folder exists
%mkdir -p ~/.trash
# %mkdir -p ~/.trash
# move current file or selected files to trash folder
# (also see 'man mv' for backup/overwrite options)
cmd trash %set -f; mv $fx ~/.trash
# delete current file or selected files (prompting)
cmd delete ${{
set -f
printf "$fx\n"
printf "delete?[y/n]"
read ans
[ $ans = "y" ] && rm -rf $fx
}}
# define a custom 'delete' command
# 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
# extract the current file with the right command
# (xkcd link: https://xkcd.com/1168/)