nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 36d86a294d775063506f746b361ea10b76bdf968
parent c2aeb51bcc6aeef398b1feacc03ee4ece5de14dc
Author: KlzXS <klzx+github@klzx.cf>
Date:   Fri, 30 Apr 2021 09:40:46 +0200

Make batchrename interactive

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2194,7 +2194,7 @@ static bool batch_rename(void) bool dir = FALSE, ret = FALSE; char foriginal[TMP_LEN_MAX] = {0}; static const char batchrenamecmd[] = "paste -d'\n' %s %s | "SED" 'N; /^\\(.*\\)\\n\\1$/!p;d' | " - "tr '\n' '\\0' | xargs -0 -n2 mv 2>/dev/null"; + "tr '\n' '\\0' | xargs -0 -n2 sh -c 'mv -i \"$0\" \"$@\" < /dev/tty'"; char buf[sizeof(batchrenamecmd) + (PATH_MAX << 1)]; int i = get_cur_or_sel();