Esc to send hovered path to FIFO

This commit is contained in:
Arun Prakash Jana 2020-06-03 15:56:10 +05:30
parent 709c0d209e
commit 2fc115bddc
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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 },