]> Sergey Matveev's repositories - nnn.git/commitdiff
Esc to send hovered path to FIFO
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 3 Jun 2020 10:26:10 +0000 (15:56 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 3 Jun 2020 10:26:10 +0000 (15:56 +0530)
src/nnn.c
src/nnn.h

index 3413d064e0597c49aa4aa60ed50e74383bbe904d..25ba95efaeea8564a4ea486ea115f8e40afb576f 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4138,29 +4138,28 @@ static void show_help(const char *path)
               "9G ^E  End%-21c+  Toggle auto-advance\n"
               "9b ^/  Bookmark key%-12c,  Pin CWD\n"
                "a1-4  Context 1-4%-7c(Sh)Tab  Cycle context\n"
-                 "c/  Filter%-17c^N  Toggle type-to-nav\n"
-               "aEsc  Exit prompt%-12c^L  Redraw/clear prompt\n"
+               "aEsc  Send to FIFO%-11c^L  Redraw\n"
                  "c?  Help, conf%-13c^G  QuitCD\n"
                  "cq  Quit context%-7c^Q (Q)  Quit (with err)\n"
+               "1FILTER & PROMPT\n"
+                 "c/  Filter%-17c^N  Toggle type-to-nav\n"
+               "aEsc  Exit prompt%-12c^L  Clear prompt/last filter\n"
                "1FILES\n"
               "9o ^O  Open with...%-12cn  Create new/link\n"
               "9f ^F  File details%-12cd  Detail mode toggle\n"
                 "b^R  Rename/dup%-14cr  Batch rename\n"
                  "cz  Archive%-17ce  Edit in EDITOR\n"
+                 "c*  Toggle exe%-14c>  Export list\n"
           "5Space ^J  (Un)select%-11cm ^K  Mark range/clear\n"
               "9p ^P  Copy sel here%-11ca  Select all\n"
               "9v ^V  Move sel here%-8cw ^W  Cp/mv sel as\n"
               "9x ^X  Delete%-18cE  Edit sel\n"
-                 "c*  Toggle exe%-14c>  Export list\n"
                "1MISC\n"
              "8Alt ;  Select plugin%-11c=  Launch app\n"
               "9! ^]  Shell%-19c]  Cmd prompt\n"
                  "cc  Connect remote%-10cu  Unmount\n"
               "9t ^T  Sort toggles%-12cs  Manage session\n"
                  "cT  Set time type%-11c0  Lock\n"
-#ifndef NOFIFO
-                 "c|  Send to FIFO%-0c\n"
-#endif
        };
 
        fd = create_tmp_file();
index 47e03e41969e31748aaa8b99e224bd3d07575684..1f7f6647238ea0c1ca7947563b1af95802d80de2 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -267,7 +267,8 @@ static struct key bindings[] = {
        /* Quit with an error code */
        { 'Q',            SEL_QUITFAIL },
 #ifndef NOFIFO
-       { '|',            SEL_FIFO },
+       /* Send hovered path to NNN_FIFO */
+       { 27,            SEL_FIFO },
 #endif
 #ifndef NOMOUSE
        { KEY_MOUSE,      SEL_CLICK },