Browse Source

Better prompt for rename/duplicate key

master
Arun Prakash Jana 5 years ago
parent
commit
dec683c39e
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/nnn.c

+ 7
- 3
src/nnn.c View File

@@ -4193,9 +4193,13 @@ nochange:
tmp = xreadline(NULL, "name/link suffix [@ for none]: ");
break;
default: /* SEL_RENAME */
dup = get_input("Press 'd' to duplicate");
tmp = xreadline(dents[cur].name, "");
break;
dup = get_input("Press 'r'(ename) / 'd'(uplicate)");
if (dup == 'r' || dup == 'd') {
tmp = xreadline(dents[cur].name, "");
break;
}

tmp = NULL;
}

if (!tmp || !*tmp)


Loading…
Cancel
Save