Browse Source

Remove shortcuts ^H, ^N, ^P

master
Arun Prakash Jana 6 years ago
parent
commit
80f4f54078
No known key found for this signature in database GPG Key ID: A75979F35C080412
4 changed files with 9 additions and 12 deletions
  1. +3
    -3
      README.md
  2. +3
    -3
      nnn.1
  3. +3
    -3
      src/nnn.c
  4. +0
    -3
      src/nnn.h

+ 3
- 3
README.md View File

@@ -213,9 +213,9 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.

```
NAVIGATION
↑, k, ^P Up PgUp, ^U Scroll up
↓, j, ^N Down PgDn, ^D Scroll down
←, h, ^H Parent dir ~ Go HOME
↑, k Up PgUp, ^U Scroll up
↓, j Down PgDn, ^D Scroll down
←, h Parent dir ~ Go HOME
↵, →, l, ^M Open file/dir & Start dir
Home, g, ^A First entry - Last visited dir
End, G, ^E Last entry . Toggle show hidden


+ 3
- 3
nnn.1 View File

@@ -29,11 +29,11 @@ is not specified.
NAVIGATION
.Pp
.Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact
.It Ic [Up], k, ^P
.It Ic [Up], k
Move to previous entry
.It Ic [Down], j, ^N
.It Ic [Down], j
Move to next entry
.It Ic [Left], h, ^H
.It Ic [Left], h
Go to parent directory
.It Ic [Right], [Enter], l, ^M
Open file or enter directory


+ 3
- 3
src/nnn.c View File

@@ -2257,9 +2257,9 @@ static bool show_help(char *path)
static char helpstr[] = {
"0\n"
"1NAVIGATION\n"
"5↑, k, ^P Up PgUp, ^U Scroll up\n"
"5↓, j, ^N Down PgDn, ^D Scroll down\n"
"5←, h, ^H Parent dir ~ Go HOME\n"
"9↑, k Up PgUp, ^U Scroll up\n"
"9↓, j Down PgDn, ^D Scroll down\n"
"9←, h Parent dir ~ Go HOME\n"
"2↵, →, l, ^M Open file/dir & Start dir\n"
"2Home, g, ^A First entry - Last visited dir\n"
"3End, G, ^E Last entry . Toggle show hidden\n"


+ 0
- 3
src/nnn.h View File

@@ -106,7 +106,6 @@ static struct key bindings[] = {
/* Back */
{ KEY_LEFT, SEL_BACK },
{ 'h', SEL_BACK },
{ CONTROL('H'), SEL_BACK },
/* Inside or select */
{ KEY_ENTER, SEL_GOIN },
{ '\r', SEL_GOIN },
@@ -116,11 +115,9 @@ static struct key bindings[] = {
/* Next */
{ 'j', SEL_NEXT },
{ KEY_DOWN, SEL_NEXT },
{ CONTROL('N'), SEL_NEXT },
/* Previous */
{ 'k', SEL_PREV },
{ KEY_UP, SEL_PREV },
{ CONTROL('P'), SEL_PREV },
/* Page down */
{ KEY_NPAGE, SEL_PGDN },
{ CONTROL('D'), SEL_PGDN },


Loading…
Cancel
Save