diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-19 12:31:25 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-19 12:31:25 +0530 |
commit | 5e4810b382e1c4bb64893d45c28333898f787cca (patch) | |
tree | 52d52b012dc23b2ee30a123fecf275a7333e63ec | |
parent | 91a31dc61df6868e6b1cd5d4f69cc3b78377cf4b (diff) | |
download | nnn-5e4810b382e1c4bb64893d45c28333898f787cca.tar.gz |
Remove keys ^, $
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | nnn.1 | 15 | ||||
-rw-r--r-- | src/nnn.c | 8 | ||||
-rw-r--r-- | src/nnn.h | 2 |
4 files changed, 14 insertions, 19 deletions
@@ -209,10 +209,10 @@ 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 - Home, g, ^, ^A First entry ~ Go HOME - End, G, $, ^E Last entry & Start dir - ←, Bksp, h, ^H Parent dir - Last visited dir - →, ↵, l, ^M Open file/dir . Toggle show hidden + ←, Bksp, h, ^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 / Filter Ins, ^T Toggle nav-as-you-type b Pin current dir ^W Go to pinned dir Tab, ^I Next context d Toggle detail view @@ -26,9 +26,6 @@ opens the current working directory by default if is not specified. .Sh KEYBINDS .Pp -.Nm -supports both vi-like and emacs-like key bindings as listed below. -.Pp NAVIGATION .Pp .Bl -tag -width "l, [Right], [Return] or C-mXXXX" -offset indent -compact @@ -36,18 +33,18 @@ NAVIGATION Move to previous entry .It Ic [Down], j, ^N Move to next entry +.It Ic [Left], [Backspace], h, ^H +Go to parent directory +.It Ic [Right], [Enter], l, ^M +Open file or enter directory .It Ic [PgUp], ^U Scroll up half a page .It Ic [PgDn], ^D Scroll down half a page -.It Ic [Home], g, ^, ^A +.It Ic [Home], g, ^A Move to the first entry -.It Ic [End], G, $, ^E +.It Ic [End], G, ^E Move to the last entry -.It Ic [Left], [Backspace], h, ^H -Go to parent directory -.It Ic [Right], [Enter], l, ^M -Open file or enter directory .It Ic ~ Change to the HOME directory .It Ic & @@ -2093,10 +2093,10 @@ static bool show_help(char *path) "1NAVIGATION\n" "7↑, k, ^P Up PgUp, ^U Scroll up\n" "7↓, j, ^N Down PgDn, ^D Scroll down\n" -"1Home, g, ^, ^A First entry ~ Go HOME\n" - "2End, G, $, ^E Last entry & Start dir\n" -"1←, Bksp, h, ^H Parent dir - Last visited dir\n" - "4→, ↵, l, ^M Open file/dir . Toggle show hidden\n" +"1←, Bksp, h, ^H Parent dir ~ Go HOME\n" + "4→, ↵, l, ^M Open file/dir & Start dir\n" + "4Home, g, ^A First entry - Last visited dir\n" + "5End, G, ^E Last entry . Toggle show hidden\n" "e/ Filter Ins, ^T Toggle nav-as-you-type\n" "eb Pin current dir ^W Go to pinned dir\n" "8Tab, ^I Next context d Toggle detail view\n" @@ -129,12 +129,10 @@ static struct key bindings[] = { { KEY_HOME, SEL_HOME }, { 'g', SEL_HOME }, { CONTROL('A'), SEL_HOME }, - { '^', SEL_HOME }, /* Last entry */ { KEY_END, SEL_END }, { 'G', SEL_END }, { CONTROL('E'), SEL_END }, - { '$', SEL_END }, /* HOME */ { '~', SEL_CDHOME }, /* Initial directory */ |