nu-explore: Refactorings (#10247)

1. Added mode to the status bar right most corner
2. Added a command name with a status when run

ref #8582 
cc: @fdncred
This commit is contained in:
Maxim Zhiburt
2023-09-06 18:24:24 +00:00
committed by GitHub
parent 7486850357
commit 99caad7d60
8 changed files with 356 additions and 195 deletions

View File

@ -134,6 +134,7 @@ fn create_config_command(commands: &[Command]) -> ConfigCmd {
let mut config = ConfigCmd::from_commands(commands.to_vec());
config.register_group(ConfigOption::new(GROUP, "Status bar information color", "status.info", default_color_list()));
config.register_group(ConfigOption::new(GROUP, "Status bar success color", "status.success", default_color_list()));
config.register_group(ConfigOption::new(GROUP, "Status bar warning color", "status.warn", default_color_list()));
config.register_group(ConfigOption::new(GROUP, "Status bar error color", "status.error", default_color_list()));