Explorar o código

Merge pull request #243 from PThorpe92/main

Documentation for bright color support
Christina Sørensen %!s(int64=2) %!d(string=hai) anos
pai
achega
f149fe6afb
Modificáronse 3 ficheiros con 28 adicións e 3 borrados
  1. 1 1
      README.md
  2. 3 2
      man/eza_colors-explanation.5.md
  3. 24 0
      man/eza_colors.5.md

+ 1 - 1
README.md

@@ -40,7 +40,7 @@ By deliberately making some decisions differently, eza attempts to be a more fea
  -   Human readable relative dates.
  -   Several security fixes.
  -   Many smaller bug fixes/changes!
-
+ -   Support for `bright` terminal colours.
 ---
 
 <a id="try-it">

+ 3 - 2
man/eza_colors-explanation.5.md

@@ -4,8 +4,7 @@ eza_colors-explanation — more details on customizing eza colors
 
 # Eza Color Explanation
 
-eza provides its own built\-in set of file extension mappings that cover a large range of common file extensions, including documents, archives, media, and temporary files.
-
+eza provides its own built\-in set of file extension mappings that cover a large range of common file extensions, including documents, archives, media, and temporary files. 
 Any mappings in the environment variables will override this default set: running eza with `LS_COLORS="*.zip=32"` will turn zip files green but leave the colours of other compressed files alone.
 
 You can also disable this built\-in set entirely by including a
@@ -24,6 +23,8 @@ files; setting `EXA_COLORS="reset"` will highlight nothing.
 
 ## BUILT\-IN EXTENSIONS
 
+- eza now supports bright colours! As supported by most modern 256\-colour terminals, you can now choose from `bright` colour codes when selecting your custom colours in your `#EXA_COLORS` environment variable.
+
 "Immediate" files are the files you should look at when downloading and building a project for the first time: READMEs, Makefiles, Cargo.toml, and others.
 They are highlighted in _yellow_ and _underlined_.
 

+ 24 - 0
man/eza_colors.5.md

@@ -260,6 +260,30 @@ The codes accepted by eza are:
 `37`
 : for white text
 
+`90`
+: for dark gray text
+
+`91`
+: for bright red text
+
+`92`
+: for bright green text
+
+`93`
+: for bright yellow text
+
+`94`
+: for bright blue text
+
+`95`
+: for bright purple text
+
+`96`
+: for bright cyan text
+
+`97`
+: for bright  text
+
 `38;5;nnn`
 : for a colour from 0 to 255 (replace the `nnn` part)