mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Reformat program help
This commit is contained in:
parent
aa9c7bac23
commit
cba1aec8d4
54
README.md
54
README.md
|
@ -220,35 +220,35 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
|
||||||
|
|
||||||
```
|
```
|
||||||
NAVIGATION
|
NAVIGATION
|
||||||
↑, k, ^P Up PgUp, ^U Scroll up
|
↑, k, ^P Up PgUp, ^U Scroll up
|
||||||
↓, j, ^N Down PgDn, ^D Scroll down
|
↓, j, ^N Down PgDn, ^D Scroll down
|
||||||
Home, g, ^, ^A First entry ~ Go HOME
|
Home, g, ^, ^A First entry ~ Go HOME
|
||||||
End, G, $, ^E Last entry & Start dir
|
End, G, $, ^E Last entry & Start dir
|
||||||
←, Bksp, h, ^H Parent dir - Last visited dir
|
←, Bksp, h, ^H Parent dir - Last visited dir
|
||||||
→, ↵, l, ^M Open file/enter dir . Toggle show hidden
|
→, ↵, l, ^M Open file/dir . Toggle show hidden
|
||||||
/ Filter Ins, ^T Toggle nav-as-you-type
|
/ Filter Ins, ^T Toggle nav-as-you-type
|
||||||
b Pin current dir ^W Go to pinned dir
|
b Pin current dir ^W Go to pinned dir
|
||||||
Tab, ^I Next context d Toggle detail view
|
Tab, ^I Next context d Toggle detail view
|
||||||
`, ^/ Leader key LeaderN Go to/create context N
|
`, ^/ Leader key LeaderN Go to/create context N
|
||||||
Esc Exit prompt ^L Redraw, clear prompt
|
Esc Exit prompt ^L Redraw/clear prompt
|
||||||
^G Quit and cd q Quit context
|
^G Quit and cd q Quit context
|
||||||
Q, ^Q Quit ? Help, config
|
Q, ^Q Quit ? Help, config
|
||||||
FILES
|
FILES
|
||||||
^O Open with... n Create new
|
^O Open with... n Create new
|
||||||
D File details ^R Rename entry
|
D File details ^R Rename entry
|
||||||
⎵, ^K Copy entry path r Open dir in vidir
|
⎵, ^K Copy entry path r Open dir in vidir
|
||||||
Y, ^Y Toggle selection y List selection
|
Y, ^Y Toggle selection y List selection
|
||||||
P Copy selection X Delete selection
|
P Copy selection X Delete selection
|
||||||
V Move selection ^X Delete entry
|
V Move selection ^X Delete entry
|
||||||
f Archive entry F List archive
|
f Archive entry F List archive
|
||||||
^F Extract archive m, M Brief/full media info
|
^F Extract archive m, M Brief/full media info
|
||||||
e Edit in EDITOR p Open in PAGER
|
e Edit in EDITOR p Open in PAGER
|
||||||
ORDER
|
ORDER TOGGLES
|
||||||
^J Disk usage S Apparent du
|
^J Disk usage S Apparent du
|
||||||
s Size t Modification time
|
t Modification time s Size
|
||||||
MISC
|
MISC
|
||||||
!, ^] Spawn SHELL in dir o Launch app
|
!, ^] Spawn SHELL in dir o Launch app
|
||||||
R Run custom script ^S Execute entry
|
R Run custom script ^S Execute entry
|
||||||
L Lock terminal
|
L Lock terminal
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
6
nnn.1
6
nnn.1
|
@ -127,17 +127,17 @@ Open entry in EDITOR (fallback vi)
|
||||||
Open entry in PAGER (fallback less)
|
Open entry in PAGER (fallback less)
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
ORDER
|
ORDER TOGGLES
|
||||||
.Pp
|
.Pp
|
||||||
.Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
|
.Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
|
||||||
.It Ic ^J
|
.It Ic ^J
|
||||||
Toggle disk usage analyzer mode
|
Toggle disk usage analyzer mode
|
||||||
.It Ic S
|
.It Ic S
|
||||||
Toggle sort by apparent size
|
Toggle sort by apparent size
|
||||||
.It Ic s
|
|
||||||
Toggle sort by file size
|
|
||||||
.It Ic t
|
.It Ic t
|
||||||
Toggle sort by time modified
|
Toggle sort by time modified
|
||||||
|
.It Ic s
|
||||||
|
Toggle sort by file size
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
MISC
|
MISC
|
||||||
|
|
54
src/nnn.c
54
src/nnn.c
|
@ -2032,35 +2032,35 @@ static bool show_help(char *path)
|
||||||
static char helpstr[] = {
|
static char helpstr[] = {
|
||||||
"0\n"
|
"0\n"
|
||||||
"1NAVIGATION\n"
|
"1NAVIGATION\n"
|
||||||
"7↑, k, ^P Up PgUp, ^U Scroll up\n"
|
"7↑, k, ^P Up PgUp, ^U Scroll up\n"
|
||||||
"7↓, j, ^N Down PgDn, ^D Scroll down\n"
|
"7↓, j, ^N Down PgDn, ^D Scroll down\n"
|
||||||
"1Home, g, ^, ^A First entry ~ Go HOME\n"
|
"1Home, g, ^, ^A First entry ~ Go HOME\n"
|
||||||
"2End, G, $, ^E Last entry & Start dir\n"
|
"2End, G, $, ^E Last entry & Start dir\n"
|
||||||
"1←, Bksp, h, ^H Parent dir - Last visited dir\n"
|
"1←, Bksp, h, ^H Parent dir - Last visited dir\n"
|
||||||
"4→, ↵, l, ^M Open file/enter dir . Toggle show hidden\n"
|
"4→, ↵, l, ^M Open file/dir . Toggle show hidden\n"
|
||||||
"e/ Filter Ins, ^T Toggle nav-as-you-type\n"
|
"e/ Filter Ins, ^T Toggle nav-as-you-type\n"
|
||||||
"eb Pin current dir ^W Go to pinned dir\n"
|
"eb Pin current dir ^W Go to pinned dir\n"
|
||||||
"8Tab, ^I Next context d Toggle detail view\n"
|
"8Tab, ^I Next context d Toggle detail view\n"
|
||||||
"a`, ^/ Leader key LeaderN Go to/create context N\n"
|
"a`, ^/ Leader key LeaderN Go to/create context N\n"
|
||||||
"cEsc Exit prompt ^L Redraw, clear prompt\n"
|
"cEsc Exit prompt ^L Redraw/clear prompt\n"
|
||||||
"d^G Quit and cd q Quit context\n"
|
"d^G Quit and cd q Quit context\n"
|
||||||
"aQ, ^Q Quit ? Help, config\n"
|
"aQ, ^Q Quit ? Help, config\n"
|
||||||
"1FILES\n"
|
"1FILES\n"
|
||||||
"d^O Open with... n Create new\n"
|
"d^O Open with... n Create new\n"
|
||||||
"eD File details ^R Rename entry\n"
|
"eD File details ^R Rename entry\n"
|
||||||
"a⎵, ^K Copy entry path r Open dir in vidir\n"
|
"a⎵, ^K Copy entry path r Open dir in vidir\n"
|
||||||
"aY, ^Y Toggle selection y List selection\n"
|
"aY, ^Y Toggle selection y List selection\n"
|
||||||
"eP Copy selection X Delete selection\n"
|
"eP Copy selection X Delete selection\n"
|
||||||
"eV Move selection ^X Delete entry\n"
|
"eV Move selection ^X Delete entry\n"
|
||||||
"ef Archive entry F List archive\n"
|
"ef Archive entry F List archive\n"
|
||||||
"d^F Extract archive m, M Brief/full media info\n"
|
"d^F Extract archive m, M Brief/full media info\n"
|
||||||
"ee Edit in EDITOR p Open in PAGER\n"
|
"ee Edit in EDITOR p Open in PAGER\n"
|
||||||
"1ORDER\n"
|
"1ORDER TOGGLES\n"
|
||||||
"d^J Disk usage S Apparent du\n"
|
"d^J Disk usage S Apparent du\n"
|
||||||
"es Size t Modification time\n"
|
"et Modification time s Size\n"
|
||||||
"1MISC\n"
|
"1MISC\n"
|
||||||
"a!, ^] Spawn SHELL in dir o Launch app\n"
|
"a!, ^] Spawn SHELL in dir o Launch app\n"
|
||||||
"eR Run custom script ^S Execute entry\n"
|
"eR Run custom script ^S Execute entry\n"
|
||||||
"eL Lock terminal\n"};
|
"eL Lock terminal\n"};
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
|
|
Loading…
Reference in a new issue