nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 80f4f54078a5c8617cd5e9ff1d2503cf9a3e269e
parent cd3124605d75a9e2f136c591ce219415817a3a01
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 23 Jan 2019 21:33:43 +0530

Remove shortcuts ^H, ^N, ^P

Diffstat:
MREADME.md | 6+++---
Mnnn.1 | 6+++---
Msrc/nnn.c | 6+++---
Msrc/nnn.h | 3---
4 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md @@ -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 diff --git a/nnn.1 b/nnn.1 @@ -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 diff --git a/src/nnn.c b/src/nnn.c @@ -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" diff --git a/src/nnn.h b/src/nnn.h @@ -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 },