mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Reformat key listing.
This commit is contained in:
parent
b4166192e6
commit
012662ab89
68
README.md
68
README.md
|
@ -128,39 +128,41 @@ nnn needs libreadline, libncursesw (on Linux or ncurses on OS X) and standard li
|
|||
|
||||
#### Keyboard shortcuts
|
||||
|
||||
| Key | Function |
|
||||
| --- | --- |
|
||||
| `Up`, `k`, `^P` | Previous entry |
|
||||
| `Down`, `j`, `^N` | Next entry |
|
||||
| `PgUp`, `^U` | Scroll half page up |
|
||||
| `PgDn`, `^D` | Scroll half page down |
|
||||
| `Home`, `g`, `^`, `^A` | Jump to first entry |
|
||||
| `End`, `G`, `$`, `^E` | Jump to last entry |
|
||||
| `Right`, `Enter`, `l`, `^M` | Open file or enter dir |
|
||||
| `Left`, `Backspace`, `h`, `^H` | Go to parent dir |
|
||||
| `~` | Jump to HOME dir |
|
||||
| `&` | Jump to initial dir |
|
||||
| `-` | Jump to last visited dir |
|
||||
| `o` | Open dir in `NNN_DE_FILE_MANAGER` |
|
||||
| `/` | Filter dir contents |
|
||||
| `c` | Show change dir prompt |
|
||||
| `d` | Toggle detail view |
|
||||
| `D` | Toggle current file details screen |
|
||||
| `m` | Show concise mediainfo |
|
||||
| `M` | Show full mediainfo |
|
||||
| `.` | Toggle hide .dot files |
|
||||
| `s` | Toggle sort by file size |
|
||||
| `S` | Toggle disk usage analyzer mode |
|
||||
| `t` | Toggle sort by modified time |
|
||||
| `!` | Spawn `SHELL` in `PWD` (fallback sh) |
|
||||
| `z` | Run `top` |
|
||||
| `e` | Edit entry in `EDITOR` (fallback vi) |
|
||||
| `p` | Open entry in `PAGER` (fallback less) |
|
||||
| `^K` | Invoke file name copier |
|
||||
| `^L` | Force a redraw |
|
||||
| `?` | Toggle help screen |
|
||||
| `q` | Quit |
|
||||
| `Q` | Quit and change directory |
|
||||
```
|
||||
Key | Function
|
||||
-+-
|
||||
Up, k, ^P | Previous entry
|
||||
Down, j, ^N | Next entry
|
||||
PgUp, ^U | Scroll half page up
|
||||
PgDn, ^D | Scroll half page down
|
||||
Home, g, ^, ^A | Jump to first entry
|
||||
End, G, $, ^E | Jump to last entry
|
||||
Right, Enter, l, ^M | Open file or enter dir
|
||||
Left, Bksp, h, ^H | Go to parent dir
|
||||
~ | Jump to HOME dir
|
||||
& | Jump to initial dir
|
||||
- | Jump to last visited dir
|
||||
o | Open dir in NNN_DE_FILE_MANAGER
|
||||
/ | Filter dir contents
|
||||
c | Show change dir prompt
|
||||
d | Toggle detail view
|
||||
D | Toggle current file details screen
|
||||
m | Show concise mediainfo
|
||||
M | Show full mediainfo
|
||||
. | Toggle hide .dot files
|
||||
s | Toggle sort by file size
|
||||
S | Toggle disk usage analyzer mode
|
||||
t | Toggle sort by modified time
|
||||
! | Spawn SHELL in PWD (fallback sh)
|
||||
z | Run top
|
||||
e | Edit entry in EDITOR (fallback vi)
|
||||
p | Open entry in PAGER (fallback less)
|
||||
^K | Invoke file name copier
|
||||
^L | Force a redraw
|
||||
? | Toggle help screen
|
||||
q | Quit
|
||||
Q | Quit and change directory
|
||||
```
|
||||
|
||||
#### Filters
|
||||
|
||||
|
|
65
nnn.c
65
nnn.c
|
@ -937,38 +937,39 @@ static int
|
|||
show_help(void)
|
||||
{
|
||||
char helpstr[] = ("echo \"\
|
||||
<< Key >> << Function >>\n\n\
|
||||
[Up], k, ^P Previous entry\n\
|
||||
[Down], j, ^N Next entry\n\
|
||||
[PgUp], ^U Scroll half page up\n\
|
||||
[PgDn], ^D Scroll half page down\n\
|
||||
[Home], g, ^, ^A Jump to first entry\n\
|
||||
[End], G, $, ^E Jump to last entry\n\
|
||||
[Right], [Enter], l, ^M Open file or enter dir\n\
|
||||
[Left], [Backspace], h, ^H Go to parent dir\n\
|
||||
~ Jump to HOME dir\n\
|
||||
& Jump to initial dir\n\
|
||||
- Jump to last visited dir\n\
|
||||
o Open dir in NNN_DE_FILE_MANAGER\n\
|
||||
/ Filter dir contents\n\
|
||||
c Show change dir prompt\n\
|
||||
d Toggle detail view\n\
|
||||
D Toggle current file details screen\n\
|
||||
m Show concise mediainfo\n\
|
||||
M Show full mediainfo\n\
|
||||
. Toggle hide .dot files\n\
|
||||
s Toggle sort by file size\n\
|
||||
S Toggle disk usage analyzer mode\n\
|
||||
t Toggle sort by modified time\n\
|
||||
! Spawn SHELL in PWD (fallback sh)\n\
|
||||
z Run top\n\
|
||||
e Edit entry in EDITOR (fallback vi)\n\
|
||||
p Open entry in PAGER (fallback less)\n\
|
||||
^K Invoke file name copier\n\
|
||||
^L Force a redraw\n\
|
||||
? Toggle help screen\n\
|
||||
q Quit\n\
|
||||
Q Quit and change directory\n\n\" | less");
|
||||
Key | Function\n\
|
||||
-+-\n\
|
||||
Up, k, ^P | Previous entry\n\
|
||||
Down, j, ^N | Next entry\n\
|
||||
PgUp, ^U | Scroll half page up\n\
|
||||
PgDn, ^D | Scroll half page down\n\
|
||||
Home, g, ^, ^A | Jump to first entry\n\
|
||||
End, G, $, ^E | Jump to last entry\n\
|
||||
Right, Enter, l, ^M | Open file or enter dir\n\
|
||||
Left, Bksp, h, ^H | Go to parent dir\n\
|
||||
~ | Jump to HOME dir\n\
|
||||
& | Jump to initial dir\n\
|
||||
- | Jump to last visited dir\n\
|
||||
o | Open dir in NNN_DE_FILE_MANAGER\n\
|
||||
/ | Filter dir contents\n\
|
||||
c | Show change dir prompt\n\
|
||||
d | Toggle detail view\n\
|
||||
D | Toggle current file details screen\n\
|
||||
m | Show concise mediainfo\n\
|
||||
M | Show full mediainfo\n\
|
||||
. | Toggle hide .dot files\n\
|
||||
s | Toggle sort by file size\n\
|
||||
S | Toggle disk usage analyzer mode\n\
|
||||
t | Toggle sort by modified time\n\
|
||||
! | Spawn SHELL in PWD (fallback sh)\n\
|
||||
z | Run top\n\
|
||||
e | Edit entry in EDITOR (fallback vi)\n\
|
||||
p | Open entry in PAGER (fallback less)\n\
|
||||
^K | Invoke file name copier\n\
|
||||
^L | Force a redraw\n\
|
||||
? | Toggle help screen\n\
|
||||
q | Quit\n\
|
||||
Q | Quit and change directory\n\n\" | less");
|
||||
|
||||
return system(helpstr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue