From c9c1d0d4547a38bce1c8811fa4edf41e69c0552a Mon Sep 17 00:00:00 2001 From: KlzXS Date: Tue, 16 Feb 2021 21:46:56 +0000 Subject: [PATCH] Favor selection over current for nmv --- plugins/.nmv | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/.nmv b/plugins/.nmv index 77625466..6176c961 100755 --- a/plugins/.nmv +++ b/plugins/.nmv @@ -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