From d58a7a3656f8e395dcbddfcc4abc999abe6d250d Mon Sep 17 00:00:00 2001 From: zwPapEr Date: Thu, 9 Sep 2021 12:00:35 +0800 Subject: [PATCH] :memo: add filename coloring explanation between LS_COLOR and theme Signed-off-by: zwPapEr --- README.md | 6 ++++++ src/flags/icons.rs | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9dcd232..07cad85 100644 --- a/README.md +++ b/README.md @@ -327,6 +327,12 @@ when configured with the `theme-file-name` which is a `yaml` file, Check [Theme file content](#theme-file-content) for details. +### Filename coloring + +`lsd` use both [LS_COLORS](https://github.com/trapd00r/LS_COLORS) and this theme feature to +colorize the filename, `lsd` will use the color and format option defined in `LS_COLORS`, +and then the theme configurations if no `LS_COLOR` are found. + ### Theme file content Theme file use the [crossterm](https://crates.io/crates/crossterm) diff --git a/src/flags/icons.rs b/src/flags/icons.rs index 77217d0..78d0fc6 100644 --- a/src/flags/icons.rs +++ b/src/flags/icons.rs @@ -100,8 +100,6 @@ pub enum IconTheme { Fancy, } -impl IconTheme {} - impl Configurable for IconTheme { /// Get a potential `IconTheme` variant from [ArgMatches]. ///