mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Update help screen
This commit is contained in:
parent
4a5ec91fce
commit
d27b4dbef7
98
README.md
98
README.md
|
@ -205,55 +205,55 @@ optional args:
|
|||
#### Keyboard shortcuts
|
||||
|
||||
```
|
||||
Key | Function
|
||||
- + -
|
||||
↑, k, ^P | Prev entry
|
||||
↓, j, ^N | Next entry
|
||||
PgUp, ^U | Scroll half page up
|
||||
PgDn, ^D | Scroll half page down
|
||||
Home, g, ^, ^A | First entry
|
||||
End, G, $, ^E | Last entry
|
||||
→, ↵, l, ^M | Open file/enter dir
|
||||
←, Bksp, h, ^H | Parent dir
|
||||
^O | Open with...
|
||||
Insert, ^I | Toggle nav-as-you-type
|
||||
~ | Go HOME
|
||||
& | Start-up dir
|
||||
- | Last visited dir
|
||||
/ | Filter entries
|
||||
^/ | Open desktop search app
|
||||
. | Toggle show . files
|
||||
^B | Bookmark prompt
|
||||
b | Pin current dir
|
||||
^V | Go to pinned dir
|
||||
c | Change dir prompt
|
||||
d | Toggle detail view
|
||||
D | File details
|
||||
m | Brief media info
|
||||
M | Full media info
|
||||
n | Create new
|
||||
^R | Rename entry
|
||||
r | Open dir in vidir
|
||||
s | Toggle sort by size
|
||||
S | Toggle apparent size
|
||||
^J | Toggle du mode
|
||||
t | Toggle sort by mtime
|
||||
!, ^] | Spawn SHELL in dir
|
||||
R | Run custom script
|
||||
e | Edit entry in EDITOR
|
||||
o | Open DE filemanager
|
||||
p | Open entry in PAGER
|
||||
f | Archive entry
|
||||
F | List archive
|
||||
^F | Extract archive
|
||||
Space, ^K | Copy file path
|
||||
^Y | Toggle multi-copy
|
||||
^T | Toggle path quote
|
||||
^L | Redraw, clear prompt
|
||||
L | Lock terminal
|
||||
? | Help, settings
|
||||
Q, ^G | Quit and cd
|
||||
q, ^X | Quit
|
||||
Key Function
|
||||
----
|
||||
↑, k, ^P Prev entry
|
||||
↓, j, ^N Next entry
|
||||
PgUp, ^U Scroll half page up
|
||||
PgDn, ^D Scroll half page down
|
||||
Home, g, ^, ^A First entry
|
||||
End, G, $, ^E Last entry
|
||||
→, ↵, l, ^M Open file/enter dir
|
||||
←, Bksp, h, ^H Parent dir
|
||||
^O Open with...
|
||||
Insert, ^I Toggle nav-as-you-type
|
||||
~ Go HOME
|
||||
& Start-up dir
|
||||
- Last visited dir
|
||||
/ Filter entries
|
||||
^/ Open desktop search app
|
||||
. Toggle show . files
|
||||
^B Bookmark prompt
|
||||
b Pin current dir
|
||||
^V Go to pinned dir
|
||||
c Change dir prompt
|
||||
d Toggle detail view
|
||||
D File details
|
||||
m Brief media info
|
||||
M Full media info
|
||||
n Create new
|
||||
^R Rename entry
|
||||
r Open dir in vidir
|
||||
s Toggle sort by size
|
||||
S Toggle apparent size
|
||||
^J Toggle du mode
|
||||
t Toggle sort by mtime
|
||||
!, ^] Spawn SHELL in dir
|
||||
R Run custom script
|
||||
e Edit entry in EDITOR
|
||||
o Open DE filemanager
|
||||
p Open entry in PAGER
|
||||
f Archive entry
|
||||
F List archive
|
||||
^F Extract archive
|
||||
Space, ^K Copy file path
|
||||
^Y Toggle multi-copy
|
||||
^T Toggle path quote
|
||||
^L Redraw, clear prompt
|
||||
L Lock terminal
|
||||
? Help, settings
|
||||
Q, ^G Quit and cd
|
||||
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.
|
||||
|
|
98
nnn.c
98
nnn.c
|
@ -1946,55 +1946,55 @@ show_help(char *path)
|
|||
int i = 0, fd = mkstemp(g_homepath);
|
||||
char *start, *end;
|
||||
static char helpstr[] = {
|
||||
"cKey | Function\n"
|
||||
"e- + -\n"
|
||||
"7↑, k, ^P | Prev entry\n"
|
||||
"7↓, j, ^N | Next entry\n"
|
||||
"7PgUp, ^U | Scroll half page up\n"
|
||||
"7PgDn, ^D | Scroll half page down\n"
|
||||
"1Home, g, ^, ^A | First entry\n"
|
||||
"2End, G, $, ^E | Last entry\n"
|
||||
"4→, ↵, l, ^M | Open file/enter dir\n"
|
||||
"1←, Bksp, h, ^H | Parent dir\n"
|
||||
"d^O | Open with...\n"
|
||||
"5Insert, ^I | Toggle nav-as-you-type\n"
|
||||
"e~ | Go HOME\n"
|
||||
"e& | Start-up dir\n"
|
||||
"e- | Last visited dir\n"
|
||||
"e/ | Filter entries\n"
|
||||
"d^/ | Open desktop search app\n"
|
||||
"e. | Toggle show . files\n"
|
||||
"d^B | Bookmark prompt\n"
|
||||
"eb | Pin current dir\n"
|
||||
"d^V | Go to pinned dir\n"
|
||||
"ec | Change dir prompt\n"
|
||||
"ed | Toggle detail view\n"
|
||||
"eD | File details\n"
|
||||
"em | Brief media info\n"
|
||||
"eM | Full media info\n"
|
||||
"en | Create new\n"
|
||||
"d^R | Rename entry\n"
|
||||
"er | Open dir in vidir\n"
|
||||
"es | Toggle sort by size\n"
|
||||
"eS | Toggle apparent size\n"
|
||||
"d^J | Toggle du mode\n"
|
||||
"et | Toggle sort by mtime\n"
|
||||
"a!, ^] | Spawn SHELL in dir\n"
|
||||
"eR | Run custom script\n"
|
||||
"ee | Edit entry in EDITOR\n"
|
||||
"eo | Open DE filemanager\n"
|
||||
"ep | Open entry in PAGER\n"
|
||||
"ef | Archive entry\n"
|
||||
"eF | List archive\n"
|
||||
"d^F | Extract archive\n"
|
||||
"6Space, ^K | Copy file path\n"
|
||||
"d^Y | Toggle multi-copy\n"
|
||||
"d^T | Toggle path quote\n"
|
||||
"d^L | Redraw, clear prompt\n"
|
||||
"eL | Lock terminal\n"
|
||||
"e? | Help, settings\n"
|
||||
"aQ, ^G | Quit and cd\n"
|
||||
"aq, ^X | Quit\n\n"};
|
||||
"cKey Desc\n"
|
||||
"e----\n"
|
||||
"7↑, k, ^P Prev entry\n"
|
||||
"7↓, j, ^N Next entry\n"
|
||||
"7PgUp, ^U Scroll half page up\n"
|
||||
"7PgDn, ^D Scroll half page down\n"
|
||||
"1Home, g, ^, ^A First entry\n"
|
||||
"2End, G, $, ^E Last entry\n"
|
||||
"4→, ↵, l, ^M Open file/enter dir\n"
|
||||
"1←, Bksp, h, ^H Parent dir\n"
|
||||
"d^O Open with...\n"
|
||||
"5Insert, ^I Toggle nav-as-you-type\n"
|
||||
"e~ Go HOME\n"
|
||||
"e& Start-up dir\n"
|
||||
"e- Last visited dir\n"
|
||||
"e/ Filter entries\n"
|
||||
"d^/ Open desktop search app\n"
|
||||
"e. Toggle show . files\n"
|
||||
"d^B Bookmark prompt\n"
|
||||
"eb Pin current dir\n"
|
||||
"d^V Go to pinned dir\n"
|
||||
"ec Change dir prompt\n"
|
||||
"ed Toggle detail view\n"
|
||||
"eD File details\n"
|
||||
"em Brief media info\n"
|
||||
"eM Full media info\n"
|
||||
"en Create new\n"
|
||||
"d^R Rename entry\n"
|
||||
"er Open dir in vidir\n"
|
||||
"es Toggle sort by size\n"
|
||||
"eS Toggle apparent size\n"
|
||||
"d^J Toggle du mode\n"
|
||||
"et Toggle sort by mtime\n"
|
||||
"a!, ^] Spawn SHELL in dir\n"
|
||||
"eR Run custom script\n"
|
||||
"ee Edit entry in EDITOR\n"
|
||||
"eo Open DE filemanager\n"
|
||||
"ep Open entry in PAGER\n"
|
||||
"ef Archive entry\n"
|
||||
"eF List archive\n"
|
||||
"d^F Extract archive\n"
|
||||
"6Space, ^K Copy file path\n"
|
||||
"d^Y Toggle multi-copy\n"
|
||||
"d^T Toggle path quote\n"
|
||||
"d^L Redraw, clear prompt\n"
|
||||
"eL Lock terminal\n"
|
||||
"e? Help, settings\n"
|
||||
"aQ, ^G Quit and cd\n"
|
||||
"aq, ^X Quit\n\n"};
|
||||
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue