]> Sergey Matveev's repositories - nnn.git/commitdiff
Replace backquote with comma as leader key
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 5 Feb 2019 18:28:13 +0000 (23:58 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 5 Feb 2019 18:28:13 +0000 (23:58 +0530)
README.md
nnn.1
src/nnn.c
src/nnn.h

index 5c8012ea21c968da62febcf6f7707934c3cdcd39..c0e69d33c1a022667def8eddaacf0c8b1b1e98a6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -226,7 +226,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
             /  Filter       Ins ^T  Toggle nav-as-you-type
             b  Pin current dir  ^B  Go to pinned dir
        Tab ^I  Next context      d  Toggle detail view
-         ` ^/  Leader key  N LeadN  Go to/create context N
+         , ^/  Leader key  N LeadN  Go to/create context N
           Esc  Exit prompt      ^L  Redraw/clear prompt
            ^G  Quit and cd       q  Quit context
          Q ^Q  Quit              ?  Help, config
diff --git a/nnn.1 b/nnn.1
index b81aa066719642f9b5f2da03dc766d062a23238b..3640ff904be2d8eb8aeb17346a9292ddd5b1a9b3 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -65,7 +65,7 @@ Visit pinned directory
 Toggle detail view
 .It Ic Tab, ^I
 Next context, ask to create if none
-.It Ic `, ^/
+.It Ic ,, ^/
 Leader key
 .It Ic N, LeaderN
 Switch to context N
index 60de801554282dbf35a15f0f219ec5cf4f9b533f..770ad39942257af08a8b38edb6d4cfb8cf41ea15 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2382,7 +2382,7 @@ static bool show_help(char *path)
              "c/  Filter       Ins ^T  Toggle nav-as-you-type\n"
              "cb  Pin current dir  ^B  Go to pinned dir\n"
         "7Tab ^I  Next context      d  Toggle detail view\n"
-          "9` ^/  Leader key  N LeadN  Go to/create context N\n"
+          "9, ^/  Leader key  N LeadN  Go to/create context N\n"
            "aEsc  Exit prompt      ^L  Redraw/clear prompt\n"
             "b^G  Quit and cd       q  Quit context\n"
           "9Q ^Q  Quit              ?  Help, config\n"
index b4ba6f21c6465e4dfaf098c2dcc1263efca66687..0983c5fc03b86f2c174dfb5317aa53dcad63c018 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -143,7 +143,7 @@ static struct key bindings[] = {
        { CONTROL('B'),   SEL_VISIT },
        /* Leader key */
        { CONTROL('_'),   SEL_LEADER },
-       { '`',            SEL_LEADER },
+       { ',',            SEL_LEADER },
        /* Cycle contexts in forward direction */
        { '\t',           SEL_CYCLE },
        { CONTROL('I'),   SEL_CYCLE },