Revert "Hide 7925" (#8500)

Revert nushell/nushell#8359
Turn `[empty list]` on by default again
This commit is contained in:
Artemiy 2023-03-17 22:58:13 +03:00 committed by GitHub
parent 77e9f8d7df
commit 491a9c019c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -332,8 +332,8 @@ fn remove_ignores_ansi() {
let actual = nu!( let actual = nu!(
cwd: sandbox.cwd(), cwd: sandbox.cwd(),
"ls | find test | get name | rm $in.0; ls", "ls | find test | get name | rm $in.0; ls | is-empty",
); );
assert!(actual.out.is_empty()); assert_eq!(actual.out, "true");
}); });
} }

View File

@ -107,7 +107,7 @@ impl Default for Config {
Config { Config {
filesize_metric: false, filesize_metric: false,
table_mode: "rounded".into(), table_mode: "rounded".into(),
table_show_empty: false, table_show_empty: true,
external_completer: None, external_completer: None,
use_ls_colors: true, use_ls_colors: true,
color_config: HashMap::new(), color_config: HashMap::new(),

View File

@ -187,6 +187,7 @@ let-env config = {
table: { table: {
mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other mode: rounded # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other
index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
show_empty: true # show 'empty list' and 'empty record' placeholders for command output
trim: { trim: {
methodology: wrapping # wrapping or truncating methodology: wrapping # wrapping or truncating
wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology wrapping_try_keep_words: true # A strategy used by the 'wrapping' methodology