mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Show file name for easier archive naming
This commit is contained in:
parent
af7e88ab5e
commit
e1fa88b24d
11
src/nnn.c
11
src/nnn.c
|
@ -3645,13 +3645,16 @@ nochange:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case SEL_ARCHIVE:
|
case SEL_ARCHIVE:
|
||||||
r = get_input("archive selection (else current)? [s]");
|
r = get_input("archive selection (else current)? [s]");
|
||||||
if (r == 's' && !cpsafe())
|
if (r == 's') {
|
||||||
|
if (!cpsafe())
|
||||||
goto nochange;
|
goto nochange;
|
||||||
else if (!ndents) {
|
tmp = NULL;
|
||||||
|
} else if (!ndents) {
|
||||||
printmsg("no files");
|
printmsg("no files");
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
} else
|
||||||
tmp = xreadline(NULL, "archive name: ");
|
tmp = dents[cur].name;
|
||||||
|
tmp = xreadline(tmp, "archive name: ");
|
||||||
break;
|
break;
|
||||||
case SEL_OPENWITH:
|
case SEL_OPENWITH:
|
||||||
tmp = xreadline(NULL, "open with: ");
|
tmp = xreadline(NULL, "open with: ");
|
||||||
|
|
Loading…
Reference in a new issue