From e298e4589050349630d0faaec00ef11555b83ae1 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 18 Jul 2026 01:55:46 +0300 Subject: feat: add optional workspace name prompt --- src/config/model.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/config') 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, @@ -1279,6 +1282,19 @@ prompt_new_tab_name = false assert!(!config.ui.prompt_new_tab_name); } + #[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(); -- cgit v1.2.3