mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Key changes: ^F - extract archive, ^X - quit
This commit is contained in:
parent
a7aaf3a458
commit
4800250814
|
@ -244,12 +244,12 @@ optional arguments:
|
||||||
o | Open dir in file manager
|
o | Open dir in file manager
|
||||||
p | Open entry in PAGER
|
p | Open entry in PAGER
|
||||||
F | List archive
|
F | List archive
|
||||||
^X | Extract archive
|
^F | Extract archive
|
||||||
^K | Invoke file path copier
|
^K | Invoke file path copier
|
||||||
^L | Redraw, clear prompt
|
^L | Redraw, clear prompt
|
||||||
? | Help, settings
|
? | Help, settings
|
||||||
Q | Quit and cd
|
Q | Quit and cd
|
||||||
q, ^Y | Quit
|
q, ^X | Quit
|
||||||
```
|
```
|
||||||
|
|
||||||
Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.
|
Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -98,7 +98,7 @@ Open directory in NNN_DE_FILE_MANAGER
|
||||||
Open current entry in PAGER (fallback less)
|
Open current entry in PAGER (fallback less)
|
||||||
.It Ic F
|
.It Ic F
|
||||||
List files in archive
|
List files in archive
|
||||||
.It Ic ^X
|
.It Ic ^F
|
||||||
Extract archive in current directory
|
Extract archive in current directory
|
||||||
.It Ic ^K
|
.It Ic ^K
|
||||||
Invoke file path copier
|
Invoke file path copier
|
||||||
|
@ -108,7 +108,7 @@ Force a redraw, clear rename or filter prompt
|
||||||
Toggle help and settings screen
|
Toggle help and settings screen
|
||||||
.It Ic Q
|
.It Ic Q
|
||||||
Quit and change directory
|
Quit and change directory
|
||||||
.It Ic q, ^Y
|
.It Ic q, ^X
|
||||||
Quit
|
Quit
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
|
|
4
nnn.c
4
nnn.c
|
@ -1724,12 +1724,12 @@ show_help(char *path)
|
||||||
"eo | Open dir in file manager\n"
|
"eo | Open dir in file manager\n"
|
||||||
"ep | Open entry in PAGER\n"
|
"ep | Open entry in PAGER\n"
|
||||||
"eF | List archive\n"
|
"eF | List archive\n"
|
||||||
"d^X | Extract archive\n"
|
"d^F | Extract archive\n"
|
||||||
"d^K | Invoke file path copier\n"
|
"d^K | Invoke file path copier\n"
|
||||||
"d^L | Redraw, clear prompt\n"
|
"d^L | Redraw, clear prompt\n"
|
||||||
"e? | Help, settings\n"
|
"e? | Help, settings\n"
|
||||||
"eQ | Quit and cd\n"
|
"eQ | Quit and cd\n"
|
||||||
"aq, ^Y | Quit\n\n");
|
"aq, ^X | Quit\n\n");
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
4
nnn.h
4
nnn.h
|
@ -132,7 +132,7 @@ static struct key bindings[] = {
|
||||||
/* List archive */
|
/* List archive */
|
||||||
{ 'F', SEL_LIST, "-l", "" },
|
{ 'F', SEL_LIST, "-l", "" },
|
||||||
/* Extract archive */
|
/* Extract archive */
|
||||||
{ CONTROL('X'), SEL_EXTRACT, "-x", "" },
|
{ CONTROL('F'), SEL_EXTRACT, "-x", "" },
|
||||||
/* Toggle sort by size */
|
/* Toggle sort by size */
|
||||||
{ 's', SEL_FSIZE, "", "" },
|
{ 's', SEL_FSIZE, "", "" },
|
||||||
/* Sort by total block count including dir contents */
|
/* Sort by total block count including dir contents */
|
||||||
|
@ -163,5 +163,5 @@ static struct key bindings[] = {
|
||||||
{ 'Q', SEL_CDQUIT, "", "" },
|
{ 'Q', SEL_CDQUIT, "", "" },
|
||||||
/* Quit */
|
/* Quit */
|
||||||
{ 'q', SEL_QUIT, "", "" },
|
{ 'q', SEL_QUIT, "", "" },
|
||||||
{ CONTROL('Y'), SEL_QUIT, "", "" },
|
{ CONTROL('X'), SEL_QUIT, "", "" },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue