mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 18:27:46 +02:00
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:
@ -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()?;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user