]> Sergey Matveev's repositories - nnn.git/commitdiff
Update docs
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 6 Aug 2020 03:26:33 +0000 (08:56 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 6 Aug 2020 04:52:17 +0000 (10:22 +0530)
README.md
nnn.1
src/nnn.c

index 2ba6c2ee23c0ac14f346698644b400827fdd27ed..7161d877848af7f5459613a60f113ad18cc50d7d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -30,8 +30,8 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
 
 - Instantly load, sort, filter thousands of files
 - Type to navigate with automatic dir selection
-- Never lose context - start where you quit
 - find/fd/grep/ripgrep/fzf from `nnn` and list in `nnn`
+- Never lose context - start where you quit
 - Mount any cloud storage service in a few keypresses
 - Select files from anywhere (not just a single dir)
 - Unlimited bookmarks, plugins, cmds with custom hotkeys
@@ -111,7 +111,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
   - FreeDesktop compliant trash (needs trash-cli)
   - Cross-dir file/all/range selection
   - Batch renamer for selection or dir
-  - Display a list of files from stdin
+  - Display file list from stdin or plugin
   - Copy (as), move (as), delete, archive, link selection
   - Dir updates, notification on cp, mv, rm completion
   - Copy file paths to system clipboard on select
diff --git a/nnn.1 b/nnn.1
index 76c8c198a027be63dcb22fb903969a824a62e4a6..3aa4ab229ffe133194d7d1dd9327138781f017e2 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -72,7 +72,7 @@ supports the following options:
         indicates that the opener is a cli-only opener (overrides -e)
 .Pp
 .Fl C
-        color directories by context, disable file colors
+        earlier colorscheme - color directories by context, disable file colors
 .Pp
 .Fl d
         detail mode
@@ -428,9 +428,9 @@ separated by \fI;\fR:
 .Pp
 \fBNNN_FCOLORS:\fR specify file-type specific colors:
 .Bd -literal
-    export NNN_FCOLORS='c1e2272e006033f9c6d6abc4'
+    export NNN_FCOLORS='c1e2272e006033f7c6d6abc4'
 
-    Redefine default file specific colors with xterm 256 color codes (2 hex symbols per color).
+    Specify 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:
 
     ------------------------- + --- + -------------
@@ -449,6 +449,10 @@ separated by \fI;\fR:
     Socket                    | ab  | MediumOrchid1
     Unknown OR 0B regular/exe | c4  | Red1
     ------------------------- + --- + -------------
+
+    If the terminal supports xterm 256 colors or more, file-specific colors will be rendered.
+    To force the earlier colorscheme (dirs follow context color) use option -C.
+    If xterm 256 colors aren't supported, earlier colorscheme will be used.
 .Ed
 .Pp
 \fBNNN_ARCHIVE:\fR archive types to be handled silently (default: bzip2, (g)zip, tar).
index 0587edbbf406e04e73f0067c26e0009c4a4c00a6..f8c03cf252827a07f9dafd879ea1aafda230409c 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -7101,7 +7101,7 @@ static void usage(void)
                " -A      no dir auto-select\n"
                " -b key  open bookmark key (trumps -s/S)\n"
                " -c      cli-only NNN_OPENER (trumps -e)\n"
-               " -C      color by context\n"
+               " -C      earlier colorscheme\n"
                " -d      detail mode\n"
                " -e      text in $VISUAL/$EDITOR/vi\n"
                " -E      use EDITOR for undetached edits\n"