mirror of
https://github.com/jarun/nnn.git
synced 2025-01-24 09:46:38 +00:00
Better prompt for rename/duplicate key
This commit is contained in:
parent
9431213e49
commit
dec683c39e
10
src/nnn.c
10
src/nnn.c
|
@ -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…
Reference in a new issue