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