]> Sergey Matveev's repositories - nnn.git/commitdiff
Favor selection over current for nmv
authorKlzXS <klzx+github@klzx.cf>
Tue, 16 Feb 2021 21:46:56 +0000 (21:46 +0000)
committerKlzXS <klzx+github@klzx.cf>
Tue, 16 Feb 2021 21:46:56 +0000 (21:46 +0000)
plugins/.nmv

index 77625466996568126ab9bc3c7d80de9c943c0fb2..6176c961c83601de21b1681cdffa6865e7bcebd7 100755 (executable)
@@ -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