Hi,
nnn can render mime icons next to the file and directory names if you
use an "icon fonts" (like powerline or nerd-fonts).
The attached patch provides flavor so that people can choose to use
those rendering features.
I built and ran the "nerd" flavor on 6.8-STABLE and 6.8-CURRENT, both
/amd64. No issue were encountered ; with default xterm(1).
Regards,
Jo
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/nnn/Makefile,v
retrieving revision 1.12
diff -u -p -u -p -r1.12 Makefile
--- Makefile 17 Nov 2020 06:11:28 -0000 1.12
+++ Makefile 21 Feb 2021 12:32:28 -0000
@@ -27,6 +27,17 @@ MAKE_FLAGS = CFLAGS_OPTIMIZATION=
FAKE_FLAGS = MANPREFIX="$(PREFIX)/man" \
PREFIX="${PREFIX}"
+FLAVORS= icons nerd
+FLAVOR?=
+
+.if ${FLAVOR:Micons}
+MAKE_FLAGS+=O_ICONS=1
+.endif
+
+.if ${FLAVOR:Mnerd}
+MAKE_FLAGS+=O_NERD=1
+.endif
+
USE_GMAKE = Yes
NO_TEST = Yes