diff options
Diffstat (limited to 'src/config/model.rs')
| -rw-r--r-- | src/config/model.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/config/model.rs b/src/config/model.rs index b32dc8a9..9fbca3a6 100644 --- a/src/config/model.rs +++ b/src/config/model.rs @@ -802,6 +802,8 @@ pub struct UiConfig { pub confirm_close: bool, /// Ask for a tab name before creating a new tab. Default: true. pub prompt_new_tab_name: bool, + /// Ask for a workspace name before interactive creation. Default: false. + pub prompt_new_workspace_name: bool, /// Draw borders around split panes. Default: true. pub pane_borders: bool, /// Keep split panes visually separated instead of sharing divider borders. Default: true. @@ -1003,6 +1005,7 @@ impl Default for UiConfig { mouse_scroll_lines: None, confirm_close: true, prompt_new_tab_name: true, + prompt_new_workspace_name: false, pane_borders: true, pane_gaps: true, show_agent_labels_on_pane_borders: false, @@ -1280,6 +1283,19 @@ prompt_new_tab_name = false } #[test] + fn prompt_new_workspace_name_defaults_off_and_parses() { + let default_config = Config::default(); + assert!(!default_config.ui.prompt_new_workspace_name); + + let toml = r#" +[ui] +prompt_new_workspace_name = true +"#; + let config: Config = toml::from_str(toml).unwrap(); + assert!(config.ui.prompt_new_workspace_name); + } + + #[test] fn reveal_hidden_cursor_for_cjk_ime_default_off_and_parse() { let default_config = Config::default(); assert!(!default_config.experimental.reveal_hidden_cursor_for_cjk_ime); |
