]> Sergey Matveev's repositories - nnn.git/commitdiff
New keys: F2 (rename) F5 (redraw)
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 24 Aug 2019 23:55:29 +0000 (05:25 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 25 Aug 2019 00:06:28 +0000 (05:36 +0530)
README.md
src/nnn.c
src/nnn.h

index eb4edc67f62970b28d21bde713f9777148692a22..57d8effcce8cb18a0810362fb0533e970a96f541 100644 (file)
--- a/README.md
+++ b/README.md
@@ -243,12 +243,12 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
        Tab ^I  Next context      d  Toggle detail view
          , ^/  Lead key    N LeadN  Context N
             /  Filter/Lead  Ins ^T  Toggle nav-as-you-type
-          Esc  Exit prompt      ^L  Redraw/clear prompt
+          Esc  Exit prompt   ^L F5  Redraw/clear prompt
             q  Quit context  Lead'  First file
          Q ^Q  Quit  ^G  QuitCD  ?  Help, config
  FILES
            ^O  Open with...      n  Create new/link
-            D  File details     ^R  Rename/duplicate
+            D  File detail   ^R F2  Rename/duplicate
      ⎵ ^K / Y  Select entry/all  r  Batch rename
          K ^Y  Toggle selection  y  List selection
             P  Copy selection    X  Delete selection
index dec86810bf255ba8de730a377cf7605e392a43e7..6db57c5008160788a2e2ce5239a1287a0af09664 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2829,12 +2829,12 @@ static bool show_help(const char *path)
             "7Tab ^I  Next context      d  Toggle detail view\n"
               "9, ^/  Lead key    N LeadN  Context N\n"
                  "c/  Filter/Lead  Ins ^T  Toggle nav-as-you-type\n"
-               "aEsc  Exit prompt      ^L  Redraw/clear prompt\n"
+               "aEsc  Exit prompt   ^L F5  Redraw/clear prompt\n"
                  "cq  Quit context  Lead'  First file\n"
               "9Q ^Q  Quit  ^G  QuitCD  ?  Help, config\n"
                "1FILES\n"
                 "b^O  Open with...      n  Create new/link\n"
-                 "cD  File details     ^R  Rename/duplicate\n"
+                 "cD  File detail   ^R F2  Rename/duplicate\n"
           "5⎵ ^K / Y  Select entry/all  r  Batch rename\n"
               "9K ^Y  Toggle selection  y  List selection\n"
                  "cP  Copy selection    X  Delete selection\n"
index e236e32e881b34d5e32cb42ce5155d7317c4e2b1..c68893ac5a528f78369fdc25cdf04803a2cd92f2 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -200,6 +200,7 @@ static struct key bindings[] = {
        { 't',            SEL_MTIME },
        /* Redraw window */
        { CONTROL('L'),   SEL_REDRAW },
+       { KEY_F(5),       SEL_REDRAW },
        /* Copy currently selected file path */
        { CONTROL('K'),   SEL_SEL },
        { ' ',            SEL_SEL },
@@ -224,7 +225,7 @@ static struct key bindings[] = {
        { 'n',            SEL_NEW },
        /* Show rename prompt */
        { CONTROL('R'),   SEL_RENAME },
-       { KEY_F(2),       SEL_RENAME }, // undocumented
+       { KEY_F(2),       SEL_RENAME },
        /* Rename contents of current dir */
        { 'r',            SEL_RENAMEALL },
        /* Connect to server over SSHFS */