allow defining a custom rename command
This commit is contained in:
1 parent
bfd01e5ed8
commit
9f661344ed
3 files changed
+36
-11
No files matched your search
+3
-3
@@ -42,9 +42,9 @@ cmd open ${{
|
||||
esac
|
||||
}}
|
||||
|
||||
# rename current file without overwrite
|
||||
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||
map r push :rename<space>
|
||||
# define a custom 'rename' command without prompt for overwrite
|
||||
# cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||
# map r push :rename<space>
|
||||
|
||||
# make sure trash folder exists
|
||||
# %mkdir -p ~/.trash
|
||||
|
||||
Reference in new issue
Block a user