Don't forget to fork in the background to avoid blocking `nnn`.
-Note that `nnn` does not watch the hovered file and update the path if it's modified while under preview. Press <kbd>^L</kbd> to update the preview without changing the hovered entry.
+Note that `nnn` does not watch the hovered file and update the path if it's modified while under preview. Press <kbd>|</kbd> to update the preview without changing the hovered entry.
#### Examples
There are many plugins provided by `nnn` which can be used as examples. Here are a few simple selected examples.
"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"
+ "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"
+ "cT Set time type%-11c0 Lock\n"
+#ifndef NOFIFO
+ "c| Send to FIFO%-0c\n"
+#endif
};
fd = create_tmp_file();
if (sel == SEL_QUITCD || getenv("NNN_TMPFILE"))
cfg.picker ? selbufpos = 0 : write_lastdir(path);
return sel == SEL_QUITFAIL ? EXIT_FAILURE : EXIT_SUCCESS;
+#ifndef NOFIFO
+ case SEL_FIFO:
+ notify_fifo(TRUE);
+ goto nochange;
+#endif
default:
if (xlines != LINES || xcols != COLS)
continue;
SEL_QUITCD,
SEL_QUIT,
SEL_QUITFAIL,
+#ifndef NOFIFO
+ SEL_FIFO,
+#endif
#ifndef NOMOUSE
SEL_CLICK,
#endif
{ CONTROL('Q'), SEL_QUIT },
/* Quit with an error code */
{ 'Q', SEL_QUITFAIL },
+#ifndef NOFIFO
+ { '|', SEL_FIFO },
+#endif
#ifndef NOMOUSE
{ KEY_MOUSE, SEL_CLICK },
#endif