aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-05-04 06:05:13 +0200
committerGravatar GitHub <noreply@github.com>2020-05-04 09:35:13 +0530
commit86e579799b3fff5aa181cf0ff843979751a60f19 (patch)
tree5a6da76f60aff58267c46fd3456810f392400b44 /Makefile
parentb5de18c28fabfc96bf865dfe55196d13f5a607c5 (diff)
downloadnnn-86e579799b3fff5aa181cf0ff843979751a60f19.tar.gz
Add an option to print hovered files to a FIFO (#548)
* Add an option to print hovered files to a FIFO This adds an env variable, `NNN_FIFO`, that can be set to a path that `nnn` will open/create as a FIFO, and where every hovered file's path is printed. This allows creating external perview/quick open plugins, ... It can be compiled out with the make variable `O_NOFIFO`. * Check filename ptr instead of full path (for FIFO) * Add documentation to use NNN_FIFO in plugins * Fix path sent to FIFO in empty dirs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c0e08a..004c524 100644
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,10 @@ ifeq ($(O_NOBATCH),1)
CPPFLAGS += -DNOBATCH
endif
+ifeq ($(O_NOFIFO),1)
+ CPPFLAGS += -DNOFIFO
+endif
+
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)