diff --git a/crates/nu-cli/src/commands/table/options.rs b/crates/nu-cli/src/commands/table/options.rs index 86c55e14cf..565bfbfc54 100644 --- a/crates/nu-cli/src/commands/table/options.rs +++ b/crates/nu-cli/src/commands/table/options.rs @@ -70,6 +70,7 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme { Ok(m) if m == "compact" => nu_table::Theme::compact(), Ok(m) if m == "light" => nu_table::Theme::light(), Ok(m) if m == "thin" => nu_table::Theme::thin(), + Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(), _ => nu_table::Theme::compact(), }) } diff --git a/crates/nu-data/src/config/table.rs b/crates/nu-data/src/config/table.rs index e9462ea813..72b1389109 100644 --- a/crates/nu-data/src/config/table.rs +++ b/crates/nu-data/src/config/table.rs @@ -95,6 +95,7 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme { Ok(m) if m == "compact" => nu_table::Theme::compact(), Ok(m) if m == "light" => nu_table::Theme::light(), Ok(m) if m == "thin" => nu_table::Theme::thin(), + Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(), _ => nu_table::Theme::compact(), }) } diff --git a/crates/nu-table/src/table.rs b/crates/nu-table/src/table.rs index f266de1f3c..dcbf7962bf 100644 --- a/crates/nu-table/src/table.rs +++ b/crates/nu-table/src/table.rs @@ -197,6 +197,35 @@ impl Theme { separate_header: true, separate_rows: false, + print_left_border: false, + print_right_border: false, + print_top_border: true, + print_bottom_border: true, + } + } + #[allow(unused)] + pub fn compact_double() -> Theme { + Theme { + top_left: '═', + middle_left: '═', + bottom_left: '═', + top_center: '╦', + center: '╬', + bottom_center: '╩', + top_right: '═', + middle_right: '═', + bottom_right: '═', + top_horizontal: '═', + middle_horizontal: '═', + bottom_horizontal: '═', + + left_vertical: ' ', + center_vertical: '║', + right_vertical: ' ', + + separate_header: true, + separate_rows: false, + print_left_border: false, print_right_border: false, print_top_border: true,