diff options
-rw-r--r-- | nnn.1 | 36 | ||||
-rw-r--r-- | src/nnn.c | 4 |
2 files changed, 34 insertions, 6 deletions
@@ -17,7 +17,6 @@ .Op Ar -f .Op Ar -F .Op Ar -g -.Op Ar -h .Op Ar -H .Op Ar -K .Op Ar -l @@ -33,6 +32,7 @@ .Op Ar -T key .Op Ar -u .Op Ar -V +.Op Ar -w .Op Ar -x .Op Ar -h .Op Ar PATH @@ -92,9 +92,6 @@ supports the following options: .Fl g use regex filters instead of substring match .Pp -.Fl h - place hardware cursor on hovered entry -.Pp .Fl H show hidden files .Pp @@ -145,6 +142,9 @@ supports the following options: .Fl V show version and exit .Pp +.Fl w + place hardware cursor on hovered entry +.Pp .Fl x show notis on selection cp, mv, rm completion copy path to system clipboard on select @@ -426,6 +426,31 @@ separated by \fI;\fR: NOTE: If only 256 colors are specified and the terminal doesn't support, default (4-blue) is used. .Ed .Pp +\fBNNN_FCOLORS:\fR specify file-type specific colors: +.Bd -literal + export NNN_FCOLORS='c1e2272e006033f9c6d6abc4' + + Redefine default file specific colors with xterm 256 color codes (2 hex symbols per color). + Order is strict, use 00 to omit/use default terminal color. Defaults: + + ------------------------- + --- + ------------- + Order | Hex | Color + ------------------------- + --- + ------------- + Block device | c1 | DarkSeaGreen1 + Char device | e2 | Yellow1 + Directory | 27 | DeepSkyBlue1 + Executable | 2e | Green1 + Regular | 00 | Normal + Hard link | 60 | Plum4 + Symbolic link | 33 | Cyan1 + Missing | f9 | Grey70 + Orphaned symbolic link | c6 | DeepPink1 + FIFO | d6 | Orange1 + Socket | ab | MediumOrchid1 + Unknown OR 0B regular/exe | c4 | Red1 + ------------------------- + --- + ------------- +.Ed +.Pp \fBNNN_ARCHIVE:\fR archive types to be handled silently (default: bzip2, (g)zip, tar). .Bd -literal export NNN_ARCHIVE="\\\\.(7z|bz2|gz|tar|tgz|zip)$" @@ -460,7 +485,8 @@ separated by \fI;\fR: NOTES: 1. Overridden by a temporary path with -a option. - 2. If the FIFO file doesn't exist it will be created, but not removed (unless it is generated by -a option). + 2. If the FIFO file doesn't exist it will be created, + but not removed (unless it is generated by -a option). .Ed .Pp \fBNNN_LOCKER:\fR terminal locker program. @@ -1657,8 +1657,10 @@ static bool initcurses(void *oldmask) colors = sep; /* Detect if 8 colors fallback is appended */ if (colors) ++colors; + g_state.ctxcolor = 1; } - } + } else + g_state.ctxcolor = 1; /* Get and set the context colors */ for (uchar i = 0; i < CTX_MAX; ++i) { |