diff --git a/crates/nu-table/src/table.rs b/crates/nu-table/src/table.rs index 137a1b29bf..5c5822190e 100644 --- a/crates/nu-table/src/table.rs +++ b/crates/nu-table/src/table.rs @@ -652,6 +652,7 @@ impl WrappedTable { } println!("{}", output); + // println!("{:#?}", output); } fn print_cell_contents(&self, cells: &[WrappedCell], color_hm: &HashMap) { @@ -677,6 +678,7 @@ impl WrappedTable { let remainder = self.column_widths[column.0] - line.width; output.push(' '); + // println!("Column1: [{:?}]", column.1.style); match column.1.style.alignment { Alignment::Left => { if let Some(color) = column.1.style.color_style { diff --git a/docs/sample_config/config.toml b/docs/sample_config/config.toml index d6f0144485..bb212cd938 100644 --- a/docs/sample_config/config.toml +++ b/docs/sample_config/config.toml @@ -14,6 +14,26 @@ complete_from_path = true rm_always_trash = true prompt = "echo [ $(ansi gb) $(pwd) $(ansi reset) \"(\" $(ansi cb) $(do -i { git rev-parse --abbrev-ref HEAD | trim }) $(ansi reset) \")\" $(char newline) $(ansi yb) $(date --format \"%m/%d/%Y %I:%M:%S%.3f %p\" --raw) $(ansi reset) \"> \" ] | str collect" +# for each of the options in the color_config section, you are able to set +# the color alone or with one of the following attributes. +# color, abbreviation +# green g +# red r +# blue u +# black b +# yellow y +# purple p +# cyan c +# white w +# attribute, abbreviation +# bold b +# underline u +# italic i +# dimmed d +# reverse r +# abbreviated: green bold = gb, red underline = ru, blue dimmed = ud +# or verbose: green_bold, red_underline, blue_dimmed + [color_config] primitive_int = "green" primitive_decimal = "red" @@ -32,7 +52,6 @@ separator_color = "purple" header_align = "l" # left|l, right|r, center|c header_color = "c" # green|g, red|r, blue|u, black|b, yellow|y, purple|p, cyan|c, white|w header_bold = true -header_style = "cb" index_color = "rd" [line_editor]