From e25e5ccd666916368355614b7255afda02c28703 Mon Sep 17 00:00:00 2001 From: amtoine Date: Thu, 13 Jul 2023 18:04:49 +0200 Subject: [PATCH] sync non-structured defaults this is basically all the config except - `$env.config.explore` - `$env.config.color_config` - `$env.config.keybindings` - `$env.config.menus` - `$env.config.hooks` - `$env.config.datetime_format` --- crates/nu-protocol/src/config.rs | 8 ++++---- crates/nu-utils/src/sample_config/default_config.nu | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/nu-protocol/src/config.rs b/crates/nu-protocol/src/config.rs index db1cce33ce..0b1915b72f 100644 --- a/crates/nu-protocol/src/config.rs +++ b/crates/nu-protocol/src/config.rs @@ -132,10 +132,10 @@ impl Default for Config { explore: HashMap::new(), - max_history_size: i64::MAX, + max_history_size: 100_000, sync_history_on_enter: true, history_file_format: HistoryFileFormat::PlainText, - history_isolation: false, + history_isolation: true, case_sensitive_completions: false, quick_completions: true, @@ -153,9 +153,9 @@ impl Default for Config { cursor_shape_vi_normal: NuCursorShape::UnderScore, color_config: HashMap::new(), - use_grid_icons: false, + use_grid_icons: true, footer_mode: FooterMode::RowCount(25), - float_precision: 4, + float_precision: 2, buffer_editor: String::new(), use_ansi_coloring: true, bracketed_paste: true, diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index dba55dfe3b..143ac453a2 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -294,7 +294,7 @@ $env.config = { use_grid_icons: true footer_mode: "25" # always, never, number_of_rows, auto float_precision: 2 # the precision for displaying floats in tables - buffer_editor: "emacs" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL + buffer_editor: "" # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL use_ansi_coloring: true bracketed_paste: true # enable bracketed paste, currently useless on windows edit_mode: emacs # emacs, vi