mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
sync default config / env with default behaviour without any configuration (#9676)
related PRs and issues - supersedes https://github.com/nushell/nushell/pull/9633 - should close https://github.com/nushell/nushell/issues/9630 # Description this PR updates the `default_config.nu` config file and the `config.rs` module in `nu_protocol` so that the default behaviour of Nushell, without any config, and the one with `default_config.nu` and `default_env.nu` are the same. ## changelog -3e2bfc9bb
: copy the structure of `default_config.nu` inside the implementation of `Default` in the `config.rs` module for easier check of the default values -e25e5ccd6
: sync all the *simple* config fields, i.e. the non-structured ones -ae7e8111c
: set the `display_output` hook to always run `table` -a09a1c564
: leave only the default menus => i've removed `commands_menu`, `vars_menu` and `commands_with_description` ## todo - [x] ~~check the defaults in `$env.config.explore`~~ done in173bdbba5
andb9622084c
- [x] ~~check the defaults in `$env.config.color_config`~~ done inc411d781d
=> the theme is now `{}` by default so that it's the same as the default one with `--no-config` - [x] ~~check the defaults `$env.config.keybindings`~~ done in715a69797
- already available with the selected mode: `completion_previous`, `next_page`, `undo_or_previous_page`, `yank`, `unix-line-discard` and `kill-line`, e.g. in *vi* mode, `unlix-line-discard` is done in NORMAL mode with either `d0` from the end of the line or `dd` from anywhere in the line and `kill-line` is done in NORMAL mode with `shift + d`. these bindings are available by default in *emacs* mode as well. - previously with removed custom menus: `commands_menu`, `vars_menu` and `commands_with_description` - [x] ~~check `$env.config.datetime_format`~~ done in0ced6b8ec
=> as there is no *human* format for datetimes, i've commented out both `$env.config.datetime_format` fields - [x] ~~fix `default_env.nu`~~ done in67c215011
# User-Facing Changes this should not change anything, just make sure the default behaviour of Nushell and the `default_config.nu` are in sync. # Tests + Formatting # After Submitting
This commit is contained in:
@ -243,7 +243,7 @@ fn table_collapse_does_wrapping_for_long_strings() {
|
||||
├────────────────────────────────┤\
|
||||
│ 111111111111111109312339230430 │\
|
||||
│ 179149313814687359833671239329 │\
|
||||
│ 01313323321729744896.0000 │\
|
||||
│ 01313323321729744896.00 │\
|
||||
╰────────────────────────────────╯"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user