Merge pull request #857 from KlzXS/batch_rename

Favor selection over current for nmv
This commit is contained in:
Mischievous Meerkat 2021-02-18 00:39:00 +05:30 committed by GitHub
commit 4b15535983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -27,12 +27,9 @@ exit_status=0
dst_file=$(mktemp "$TMPDIR/.nnnXXXXXX")
if [ -s "$selection" ]; then
printf "Rename 'c'urrent / 's'election? "
read -r resp
if ! [ "$resp" = "c" ] && ! [ "$resp" = "s" ]; then
exit 1
fi
resp="s"
else
resp="c"
fi
if [ "$resp" = "s" ]; then