mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Update docs
This commit is contained in:
parent
ef2d5a54d2
commit
66bb5a67d6
2 changed files with 34 additions and 6 deletions
36
nnn.1
36
nnn.1
|
@ -17,7 +17,6 @@
|
||||||
.Op Ar -f
|
.Op Ar -f
|
||||||
.Op Ar -F
|
.Op Ar -F
|
||||||
.Op Ar -g
|
.Op Ar -g
|
||||||
.Op Ar -h
|
|
||||||
.Op Ar -H
|
.Op Ar -H
|
||||||
.Op Ar -K
|
.Op Ar -K
|
||||||
.Op Ar -l
|
.Op Ar -l
|
||||||
|
@ -33,6 +32,7 @@
|
||||||
.Op Ar -T key
|
.Op Ar -T key
|
||||||
.Op Ar -u
|
.Op Ar -u
|
||||||
.Op Ar -V
|
.Op Ar -V
|
||||||
|
.Op Ar -w
|
||||||
.Op Ar -x
|
.Op Ar -x
|
||||||
.Op Ar -h
|
.Op Ar -h
|
||||||
.Op Ar PATH
|
.Op Ar PATH
|
||||||
|
@ -92,9 +92,6 @@ supports the following options:
|
||||||
.Fl g
|
.Fl g
|
||||||
use regex filters instead of substring match
|
use regex filters instead of substring match
|
||||||
.Pp
|
.Pp
|
||||||
.Fl h
|
|
||||||
place hardware cursor on hovered entry
|
|
||||||
.Pp
|
|
||||||
.Fl H
|
.Fl H
|
||||||
show hidden files
|
show hidden files
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -145,6 +142,9 @@ supports the following options:
|
||||||
.Fl V
|
.Fl V
|
||||||
show version and exit
|
show version and exit
|
||||||
.Pp
|
.Pp
|
||||||
|
.Fl w
|
||||||
|
place hardware cursor on hovered entry
|
||||||
|
.Pp
|
||||||
.Fl x
|
.Fl x
|
||||||
show notis on selection cp, mv, rm completion
|
show notis on selection cp, mv, rm completion
|
||||||
copy path to system clipboard on select
|
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.
|
NOTE: If only 256 colors are specified and the terminal doesn't support, default (4-blue) is used.
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.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).
|
\fBNNN_ARCHIVE:\fR archive types to be handled silently (default: bzip2, (g)zip, tar).
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
export NNN_ARCHIVE="\\\\.(7z|bz2|gz|tar|tgz|zip)$"
|
export NNN_ARCHIVE="\\\\.(7z|bz2|gz|tar|tgz|zip)$"
|
||||||
|
@ -460,7 +485,8 @@ separated by \fI;\fR:
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
1. Overridden by a temporary path with -a option.
|
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
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
\fBNNN_LOCKER:\fR terminal locker program.
|
\fBNNN_LOCKER:\fR terminal locker program.
|
||||||
|
|
|
@ -1657,8 +1657,10 @@ static bool initcurses(void *oldmask)
|
||||||
colors = sep; /* Detect if 8 colors fallback is appended */
|
colors = sep; /* Detect if 8 colors fallback is appended */
|
||||||
if (colors)
|
if (colors)
|
||||||
++colors;
|
++colors;
|
||||||
|
g_state.ctxcolor = 1;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
g_state.ctxcolor = 1;
|
||||||
|
|
||||||
/* Get and set the context colors */
|
/* Get and set the context colors */
|
||||||
for (uchar i = 0; i < CTX_MAX; ++i) {
|
for (uchar i = 0; i < CTX_MAX; ++i) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue