allow icons to be used in grid -c (#378)

* add icons to grid output. still needs cleanup

* working but adds a dependency on ansi_term - need to fix that

* update styling, added lots of green code to icons

* clippy

* add config point for grid icons
This commit is contained in:
Darren Schroeder
2021-11-29 14:37:09 -06:00
committed by GitHub
parent 414ed4877a
commit ce4d9dc7c6
6 changed files with 651 additions and 17 deletions

View File

@ -8,6 +8,7 @@ pub struct Config {
pub table_mode: String,
pub use_ls_colors: bool,
pub color_config: HashMap<String, String>,
pub use_grid_icons: bool,
}
impl Default for Config {
@ -17,6 +18,7 @@ impl Default for Config {
table_mode: "rounded".into(),
use_ls_colors: true,
color_config: HashMap::new(),
use_grid_icons: false,
}
}
}
@ -46,6 +48,9 @@ impl Value {
}
config.color_config = hm;
}
"use_grid_icons" => {
config.use_grid_icons = value.as_bool()?;
}
_ => {}
}
}