forked from extern/nushell
remove config use_grid_icons, move to parameter of grid command (#13788)
# Description After looking at #13751 I noticed that the config setting `use_grid_icons` seems out of place. So, I removed it from the config and made it a parameter to the `grid` command.
This commit is contained in:
@ -47,7 +47,6 @@ pub struct Config {
|
||||
pub table: TableConfig,
|
||||
pub ls: LsConfig,
|
||||
pub color_config: HashMap<String, Value>,
|
||||
pub use_grid_icons: bool,
|
||||
pub footer_mode: FooterMode,
|
||||
pub float_precision: i64,
|
||||
pub recursion_limit: i64,
|
||||
@ -104,7 +103,6 @@ impl Default for Config {
|
||||
cursor_shape: CursorShapeConfig::default(),
|
||||
|
||||
color_config: HashMap::new(),
|
||||
use_grid_icons: true,
|
||||
footer_mode: FooterMode::RowCount(25),
|
||||
float_precision: 2,
|
||||
buffer_editor: Value::nothing(Span::unknown()),
|
||||
@ -526,9 +524,6 @@ impl Value {
|
||||
*value = config.color_config.clone().into_value(span);
|
||||
}
|
||||
}
|
||||
"use_grid_icons" => {
|
||||
process_bool_config(value, &mut errors, &mut config.use_grid_icons);
|
||||
}
|
||||
"footer_mode" => {
|
||||
process_string_enum(
|
||||
&mut config.footer_mode,
|
||||
|
Reference in New Issue
Block a user