More concise help screen.

This commit is contained in:
Arun Prakash Jana 2017-07-04 10:01:15 +05:30
parent e585d830cd
commit 342ecdc3ef
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 71 additions and 71 deletions

View File

@ -85,7 +85,7 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
- Numeric order (1, 2, ... 10, 11, ...) for numeric names - Numeric order (1, 2, ... 10, 11, ...) for numeric names
- Sort by modification time, size - Sort by modification time, size
- Convenience - Convenience
- Spawn a shell in the current directory - Spawn SHELL (fallback sh) in the current directory
- Invoke file path copier (*easy* shell integration) - Invoke file path copier (*easy* shell integration)
- Change directory at exit (*easy* shell integration) - Change directory at exit (*easy* shell integration)
- Open any file in EDITOR (fallback vi) or PAGER (fallback less) - Open any file in EDITOR (fallback vi) or PAGER (fallback less)
@ -157,41 +157,41 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
#### Keyboard shortcuts #### Keyboard shortcuts
``` ```
Key | Function Key | Function
-+- -+-
↑, k, ^P | Previous entry ↑, k, ^P | Previous 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 | Jump to first entry Home, g, ^, ^A | Jump to first entry
End, G, $, ^E | Jump to last entry End, G, $, ^E | Jump to last entry
→, ↵, l, ^M | Open file or enter dir →, ↵, l, ^M | Open file or enter dir
←, Bksp, h, ^H | Go to parent dir ←, Bksp, h, ^H | Go to parent dir
Insert | Toggle navigate-as-you-type mode Insert | Toggle navigate-as-you-type
~ | Jump to HOME dir ~ | Jump to HOME dir
& | Jump to initial dir & | Jump to initial dir
- | Jump to last visited dir - | Jump to last visited dir
/ | Filter dir contents / | Filter dir contents
^/ | Search dir in desktop search tool ^/ | Open desktop search tool
. | Toggle hide .dot files . | Toggle hide .dot files
b | Show bookmark key prompt b | Show bookmark key prompt
c | Show change dir prompt c | Show change dir prompt
d | Toggle detail view d | Toggle detail view
D | Toggle current file details screen D | Show current file details
m | Show concise media info m | Show concise media info
M | Show full media info M | Show full media info
s | Toggle sort by file size s | Toggle sort by file size
S | Toggle disk usage analyzer mode S | Toggle disk usage mode
t | Toggle sort by modified time t | Toggle sort by mtime
! | Spawn SHELL in PWD (fallback sh) ! | Spawn SHELL in current dir
e | Edit entry in EDITOR (fallback vi) e | Edit entry in EDITOR
o | Open dir in NNN_DE_FILE_MANAGER o | Open dir in file manager
p | Open entry in PAGER (fallback less) p | Open entry in PAGER
^K | Invoke file path copier ^K | Invoke file path copier
^L, F2 | Force a redraw, unfilter ^L, F2 | Force a redraw, unfilter
? | Toggle help and settings screen ? | Show help, settings
Q | Quit and change directory Q | Quit and change dir
q, ^Q | Quit q, ^Q | Quit
``` ```
#### Filters #### Filters

70
nnn.c
View File

@ -1453,41 +1453,41 @@ show_help(void)
{ {
char tmp[] = "/tmp/nnnXXXXXX"; char tmp[] = "/tmp/nnnXXXXXX";
static char helpstr[] = ("\ static char helpstr[] = ("\
Key | Function\n\ Key | Function\n\
-+-\n\ -+-\n\
, k, ^P | Previous entry\n\ , k, ^P | Previous entry\n\
, j, ^N | Next entry\n\ , j, ^N | Next entry\n\
PgUp, ^U | Scroll half page up\n\ PgUp, ^U | Scroll half page up\n\
PgDn, ^D | Scroll half page down\n\ PgDn, ^D | Scroll half page down\n\
Home, g, ^, ^A | Jump to first entry\n\ Home, g, ^, ^A | Jump to first entry\n\
End, G, $, ^E | Jump to last entry\n\ End, G, $, ^E | Jump to last entry\n\
, , l, ^M | Open file or enter dir\n\ , , l, ^M | Open file or enter dir\n\
, Bksp, h, ^H | Go to parent dir\n\ , Bksp, h, ^H | Go to parent dir\n\
Insert | Toggle navigate-as-you-type mode\n\ Insert | Toggle navigate-as-you-type\n\
~ | Jump to HOME dir\n\ ~ | Jump to HOME dir\n\
& | Jump to initial dir\n\ & | Jump to initial dir\n\
- | Jump to last visited dir\n\ - | Jump to last visited dir\n\
/ | Filter dir contents\n\ / | Filter dir contents\n\
^/ | Search dir in desktop search tool\n\ ^/ | Open desktop search tool\n\
. | Toggle hide .dot files\n\ . | Toggle hide .dot files\n\
b | Show bookmark key prompt\n\ b | Show bookmark key prompt\n\
c | Show change dir prompt\n\ c | Show change dir prompt\n\
d | Toggle detail view\n\ d | Toggle detail view\n\
D | Show current file details screen\n\ D | Show current file details\n\
m | Show concise media info\n\ m | Show concise media info\n\
M | Show full media info\n\ M | Show full media info\n\
s | Toggle sort by file size\n\ s | Toggle sort by file size\n\
S | Toggle disk usage analyzer mode\n\ S | Toggle disk usage mode\n\
t | Toggle sort by modified time\n\ t | Toggle sort by mtime\n\
! | Spawn SHELL in PWD (fallback sh)\n\ ! | Spawn SHELL in current dir\n\
e | Edit entry in EDITOR (fallback vi)\n\ e | Edit entry in EDITOR\n\
o | Open dir in NNN_DE_FILE_MANAGER\n\ o | Open dir in file manager\n\
p | Open entry in PAGER (fallback less)\n\ p | Open entry in PAGER\n\
^K | Invoke file path copier\n\ ^K | Invoke file path copier\n\
^L, F2 | Force a redraw, unfilter\n\ ^L, F2 | Force a redraw, unfilter\n\
? | Toggle help and settings screen\n\ ? | Show help, settings\n\
Q | Quit and change directory\n\ Q | Quit and change dir\n\
q, ^Q | Quit\n\n\n"); q, ^Q | Quit\n\n");
int i = 0, fd = mkstemp(tmp); int i = 0, fd = mkstemp(tmp);