diff --git a/zellij-server/src/panes/plugin_pane.rs b/zellij-server/src/panes/plugin_pane.rs index 980438c57e..8a45c3c100 100644 --- a/zellij-server/src/panes/plugin_pane.rs +++ b/zellij-server/src/panes/plugin_pane.rs @@ -68,6 +68,7 @@ pub(crate) struct PluginPane { prev_pane_name: String, frame: HashMap, borderless: bool, + exclude_from_sync: bool, pane_frame_color_override: Option<(PaletteColor, Option)>, invoked_with: Option, loading_indication: LoadingIndication, @@ -107,6 +108,7 @@ impl PluginPane { prev_pane_name: pane_name, terminal_emulator_colors, terminal_emulator_color_codes, + exclude_from_sync: false, link_handler, character_cell_size, sixel_image_store, @@ -502,6 +504,12 @@ impl Pane for PluginPane { fn borderless(&self) -> bool { self.borderless } + fn set_exclude_from_sync(&mut self, exclude_from_sync: bool) { + self.exclude_from_sync = exclude_from_sync; + } + fn exclude_from_sync(&self) -> bool { + self.exclude_from_sync + } fn handle_right_click(&mut self, to: &Position, client_id: ClientId) { self.send_plugin_instructions .send(PluginInstruction::Update(vec![( diff --git a/zellij-server/src/panes/terminal_pane.rs b/zellij-server/src/panes/terminal_pane.rs index 469cfa0938..0c1b55070a 100644 --- a/zellij-server/src/panes/terminal_pane.rs +++ b/zellij-server/src/panes/terminal_pane.rs @@ -105,6 +105,7 @@ pub struct TerminalPane { prev_pane_name: String, frame: HashMap, borderless: bool, + exclude_from_sync: bool, fake_cursor_locations: HashSet<(usize, usize)>, // (x, y) - these hold a record of previous fake cursors which we need to clear on render search_term: String, is_held: Option<(Option, IsFirstRun, RunCommand)>, // a "held" pane means that its command has either exited and the pane is waiting for a @@ -602,6 +603,14 @@ impl Pane for TerminalPane { self.borderless } + fn set_exclude_from_sync(&mut self, exclude_from_sync: bool) { + self.exclude_from_sync = exclude_from_sync; + } + + fn exclude_from_sync(&self) -> bool { + self.exclude_from_sync + } + fn mouse_left_click(&self, position: &Position, is_held: bool) -> Option { self.grid.mouse_left_click_signal(position, is_held) } @@ -756,6 +765,7 @@ impl TerminalPane { pane_name: pane_name.clone(), prev_pane_name: pane_name, borderless: false, + exclude_from_sync: false, fake_cursor_locations: HashSet::new(), search_term: String::new(), is_held: None, diff --git a/zellij-server/src/tab/layout_applier.rs b/zellij-server/src/tab/layout_applier.rs index ef475c07e7..a89a42dc4a 100644 --- a/zellij-server/src/tab/layout_applier.rs +++ b/zellij-server/src/tab/layout_applier.rs @@ -235,6 +235,9 @@ impl<'a> LayoutApplier<'a> { layout.run.clone(), ); new_plugin.set_borderless(layout.borderless); + if let Some(exclude_from_sync) = layout.exclude_from_sync { + new_plugin.set_exclude_from_sync(exclude_from_sync); + } self.tiled_panes .add_pane_with_existing_geom(PaneId::Plugin(pid), Box::new(new_plugin)); set_focus_pane_id(layout, PaneId::Plugin(pid)); @@ -262,6 +265,9 @@ impl<'a> LayoutApplier<'a> { layout.run.clone(), ); new_pane.set_borderless(layout.borderless); + if let Some(exclude_from_sync) = layout.exclude_from_sync { + new_pane.set_exclude_from_sync(exclude_from_sync); + } if let Some(held_command) = hold_for_command { new_pane.hold(None, true, held_command.clone()); } diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index d61eb1a4c7..65228b83a2 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -371,6 +371,9 @@ pub trait Pane { fn load_pane_name(&mut self); fn set_borderless(&mut self, borderless: bool); fn borderless(&self) -> bool; + fn set_exclude_from_sync(&mut self, exclude_from_sync: bool); + fn exclude_from_sync(&self) -> bool; + // TODO: this should probably be merged with the mouse_right_click fn handle_right_click(&mut self, _to: &Position, _client_id: ClientId) {} fn mouse_left_click(&self, _position: &Position, _is_held: bool) -> Option { @@ -1656,15 +1659,29 @@ impl Tab { let err_context = || format!("failed to write to pane with id {pane_id:?}"); let mut should_update_ui = false; + let is_sync_panes_active = self.is_sync_panes_active(); + + let active_terminal = self + .floating_panes + .get_mut(&pane_id) + .or_else(|| self.tiled_panes.get_pane_mut(pane_id)) + .or_else(|| self.suppressed_panes.get_mut(&pane_id)) + .ok_or_else(|| anyhow!(format!("failed to find pane with id {pane_id:?}"))) + .with_context(err_context)?; + + // We always write for non-synced terminals. + // However if the terminal is part of a tab-sync, we need to + // check if the terminal should receive input or not (depending on its + // 'exclude_from_sync' configuration). + let should_not_write_to_terminal = + is_sync_panes_active && active_terminal.exclude_from_sync(); + + if should_not_write_to_terminal { + return Ok(should_update_ui); + } + match pane_id { PaneId::Terminal(active_terminal_id) => { - let active_terminal = self - .floating_panes - .get_mut(&pane_id) - .or_else(|| self.tiled_panes.get_pane_mut(pane_id)) - .or_else(|| self.suppressed_panes.get_mut(&pane_id)) - .ok_or_else(|| anyhow!(format!("failed to find pane with id {pane_id:?}"))) - .with_context(err_context)?; match active_terminal.adjust_input_to_terminal(input_bytes) { Some(AdjustedInput::WriteBytesToTerminal(adjusted_input)) => { self.senders diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_default_params.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_default_params.snap index 45e58cf708..42eeaa7c41 100644 --- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_default_params.snap +++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_default_params.snap @@ -1,6 +1,5 @@ --- source: zellij-server/src/./unit/screen_tests.rs -assertion_line: 2397 expression: "format!(\"{:#?}\", new_tab_action)" --- Some( @@ -22,6 +21,7 @@ Some( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -34,6 +34,7 @@ Some( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -43,6 +44,7 @@ Some( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap index d09628ded3..f06ae128c5 100644 --- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap +++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_new_tab_action_with_name_and_layout.snap @@ -25,6 +25,7 @@ NewTab( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -41,6 +42,7 @@ NewTab( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -57,6 +59,7 @@ NewTab( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -66,6 +69,7 @@ NewTab( external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_rename_tab.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_rename_tab.snap index c0312eb7b1..596b5e800b 100644 --- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_rename_tab.snap +++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_rename_tab.snap @@ -44,6 +44,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -56,6 +57,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -65,6 +67,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], @@ -201,6 +204,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -213,6 +217,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -222,6 +227,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], diff --git a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_undo_rename_tab.snap b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_undo_rename_tab.snap index 525bb97d30..1a80ff086a 100644 --- a/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_undo_rename_tab.snap +++ b/zellij-server/src/unit/snapshots/zellij_server__screen__screen_tests__send_cli_undo_rename_tab.snap @@ -44,6 +44,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -56,6 +57,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -65,6 +67,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], @@ -201,6 +204,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -213,6 +217,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -222,6 +227,7 @@ expression: "format!(\"{:#?}\", * received_plugin_instructions.lock().unwrap())" external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ), [], diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index a07e1d3133..830f7c0285 100644 --- a/zellij-utils/src/input/layout.rs +++ b/zellij-utils/src/input/layout.rs @@ -395,6 +395,7 @@ pub struct TiledPaneLayout { pub external_children_index: Option, pub children_are_stacked: bool, pub is_expanded_in_stack: bool, + pub exclude_from_sync: Option, } impl TiledPaneLayout { diff --git a/zellij-utils/src/input/unit/layout_test.rs b/zellij-utils/src/input/unit/layout_test.rs index 7ff2567a95..a38abe0287 100644 --- a/zellij-utils/src/input/unit/layout_test.rs +++ b/zellij-utils/src/input/unit/layout_test.rs @@ -1008,6 +1008,17 @@ fn combined_tab_and_pane_template_both_with_children() { assert_snapshot!(format!("{:#?}", layout)); } +#[test] +fn layout_with_pane_excluded_from_sync() { + let kdl_layout = r#" + layout { + pane exclude_from_sync=true + } + "#; + let layout = Layout::from_kdl(kdl_layout, "layout_file_name".into(), None, None).unwrap(); + assert_snapshot!(format!("{:#?}", layout)); +} + #[test] fn cannot_define_tab_template_name_with_space() { let kdl_layout = r#" diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_added_to_args_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_added_to_args_in_template.snap index 65450c1229..d01949514c 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_added_to_args_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_added_to_args_in_template.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -58,6 +59,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -67,6 +69,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_override_args_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_override_args_in_template.snap index 5db6198b3f..d31f721f04 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_override_args_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__args_override_args_in_template.snap @@ -36,6 +36,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -61,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -70,6 +72,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_a_stack_with_an_expanded_pane.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_a_stack_with_an_expanded_pane.snap index 92e0e43653..31ea7cb7d2 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_a_stack_with_an_expanded_pane.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_a_stack_with_an_expanded_pane.snap @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1896 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -27,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -39,6 +39,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: true, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -51,6 +52,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -60,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: true, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -69,6 +72,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_node.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_node.snap index c9aa7f8721..85fa560d47 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_node.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_node.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -39,6 +40,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -48,6 +50,7 @@ Layout { external_children_index: None, children_are_stacked: true, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -57,6 +60,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_template.snap index 36186c3c17..2a6a8b2cf1 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_define_stacked_children_for_pane_template.snap @@ -31,6 +31,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -43,6 +44,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -52,6 +54,7 @@ Layout { external_children_index: None, children_are_stacked: true, is_expanded_in_stack: true, + exclude_from_sync: None, }, ], split_size: None, @@ -61,6 +64,7 @@ Layout { external_children_index: None, children_are_stacked: true, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -70,6 +74,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_load_swap_layouts_from_a_different_file.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_load_swap_layouts_from_a_different_file.snap index e2860ea05d..98d4fef5a1 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_load_swap_layouts_from_a_different_file.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__can_load_swap_layouts_from_a_different_file.snap @@ -23,6 +23,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -32,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -72,6 +74,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -92,6 +95,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -106,6 +110,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -115,6 +120,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -124,6 +130,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -151,6 +158,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -160,6 +168,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 8, @@ -193,6 +202,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -215,6 +225,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -231,6 +242,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -243,6 +255,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -255,6 +268,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -267,6 +281,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -276,6 +291,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -285,6 +301,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -294,6 +311,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -321,6 +339,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -330,6 +349,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 12, @@ -363,6 +383,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -385,6 +406,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -401,6 +423,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -413,6 +436,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -425,6 +449,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -437,6 +462,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -446,6 +472,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -462,6 +489,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -474,6 +502,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -486,6 +515,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -498,6 +528,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -507,6 +538,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -516,6 +548,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -525,6 +558,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -552,6 +586,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -561,6 +596,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, }, Some( diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_pane_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_pane_template.snap index be074f543a..9308614a63 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_pane_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_pane_template.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -49,6 +50,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -61,6 +63,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -70,6 +73,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -79,6 +83,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -91,6 +96,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -100,6 +106,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -120,6 +127,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -131,6 +139,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -143,6 +152,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -152,6 +162,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -161,6 +172,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_tab_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_tab_template.snap index 4cb4b14e14..7ff5948618 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_tab_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__children_not_as_first_child_of_tab_template.snap @@ -28,6 +28,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -56,6 +58,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -65,6 +68,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -74,6 +78,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -86,6 +91,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -95,6 +101,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -119,6 +126,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -130,6 +138,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -142,6 +151,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -151,6 +161,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -169,6 +180,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_added_to_close_on_exit_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_added_to_close_on_exit_in_template.snap index aa59d56ad3..403980b6dd 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_added_to_close_on_exit_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_added_to_close_on_exit_in_template.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -55,6 +56,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -64,6 +66,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_overrides_close_on_exit_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_overrides_close_on_exit_in_template.snap index 20cf29a668..23a71d4483 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_overrides_close_on_exit_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__close_on_exit_overrides_close_on_exit_in_template.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -55,6 +56,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -64,6 +66,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__combined_tab_and_pane_template_both_with_children.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__combined_tab_and_pane_template_both_with_children.snap index 4690737e23..80ba99b1f8 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__combined_tab_and_pane_template_both_with_children.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__combined_tab_and_pane_template_both_with_children.snap @@ -28,6 +28,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -46,6 +47,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -55,6 +57,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -67,6 +70,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -76,6 +80,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -92,6 +97,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -104,6 +110,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -113,6 +120,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -122,6 +130,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -146,6 +155,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -164,6 +174,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -173,6 +184,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -185,6 +197,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -194,6 +207,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -206,6 +220,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -215,6 +230,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -233,6 +249,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_added_to_cwd_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_added_to_cwd_in_template.snap index 0d55ae027c..532959f422 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_added_to_cwd_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_added_to_cwd_in_template.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -57,6 +58,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -66,6 +68,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_override_cwd_in_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_override_cwd_in_template.snap index 7c487e001b..54d78e9804 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_override_cwd_in_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__cwd_override_cwd_in_template.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -59,6 +60,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -68,6 +70,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd.snap index 72e1a7ae1f..81673d25b6 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +51,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -63,6 +65,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -81,6 +84,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_pane_templates.snap index 45cbc40ce2..c87db71c77 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_pane_templates.snap @@ -30,6 +30,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -54,6 +55,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -74,6 +76,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -87,6 +90,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -100,6 +104,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -113,6 +118,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -131,6 +137,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_tab_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_tab_templates.snap index 4fe1ca3462..321f36e49d 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_tab_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_and_tab_cwd_prepended_to_panes_with_and_without_cwd_in_tab_templates.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +51,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -70,6 +72,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -83,6 +86,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -96,6 +100,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -114,6 +119,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_given_to_panes_without_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_given_to_panes_without_cwd.snap index 350be507c1..bd9888fef4 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_given_to_panes_without_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_given_to_panes_without_cwd.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -51,6 +52,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -60,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor.snap index 83d4e314d6..f871ff739d 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -51,6 +52,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -60,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor_overrides_global_cwd_in_layout_file.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor_overrides_global_cwd_in_layout_file.snap index ecffcd500d..d7b8582218 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor_overrides_global_cwd_in_layout_file.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_passed_from_layout_constructor_overrides_global_cwd_in_layout_file.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -51,6 +52,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -60,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_prepended_to_panes_with_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_prepended_to_panes_with_cwd.snap index 36f7eae163..770a43cc3c 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_prepended_to_panes_with_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_prepended_to_panes_with_cwd.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -51,6 +52,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -60,6 +62,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_with_tab_cwd_given_to_panes_without_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_with_tab_cwd_given_to_panes_without_cwd.snap index bb2788f10a..b9829595ce 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_with_tab_cwd_given_to_panes_without_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__global_cwd_with_tab_cwd_given_to_panes_without_cwd.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +51,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -63,6 +65,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -81,6 +84,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_close_on_exit.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_close_on_exit.snap index a1c0e304dd..4f5c5e0bb1 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_close_on_exit.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_close_on_exit.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -42,6 +43,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_start_suspended.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_start_suspended.snap index bff3ec1d01..9f118820a5 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_start_suspended.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_command_panes_and_start_suspended.snap @@ -33,6 +33,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -42,6 +43,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_default_tab_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_default_tab_template.snap index 470639ec05..bec76e1184 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_default_tab_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_default_tab_template.snap @@ -24,6 +24,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -40,6 +41,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -52,6 +54,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -61,6 +64,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -73,6 +77,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -82,6 +87,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -104,6 +110,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -120,6 +127,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -132,6 +140,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -141,6 +150,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -153,6 +163,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -162,6 +173,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -182,6 +194,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -194,6 +207,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -206,6 +220,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -215,6 +230,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -237,6 +253,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -249,6 +266,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -261,6 +279,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -270,6 +289,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_branched_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_branched_pane_templates.snap index 7a0e3552ab..d3b743e17e 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_branched_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_branched_pane_templates.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -39,6 +40,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -55,6 +57,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -67,6 +70,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -76,6 +80,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -92,6 +97,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -104,6 +110,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -116,6 +123,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -125,6 +133,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -134,6 +143,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -143,6 +153,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_pane_templates.snap index 727a2afab9..8a6dce5223 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_nested_pane_templates.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -39,6 +40,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -55,6 +57,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -67,6 +70,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -76,6 +80,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -88,6 +93,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -97,6 +103,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -106,6 +113,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_excluded_from_sync.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_excluded_from_sync.snap new file mode 100644 index 0000000000..25f7dc0764 --- /dev/null +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_excluded_from_sync.snap @@ -0,0 +1,45 @@ +--- +source: zellij-utils/src/input/./unit/layout_test.rs +expression: "format!(\"{:#?}\", layout)" +--- +Layout { + tabs: [], + focused_tab_index: None, + template: Some( + ( + TiledPaneLayout { + children_split_direction: Horizontal, + name: None, + children: [ + TiledPaneLayout { + children_split_direction: Horizontal, + name: None, + children: [], + split_size: None, + run: None, + borderless: false, + focus: None, + external_children_index: None, + children_are_stacked: false, + is_expanded_in_stack: false, + exclude_from_sync: Some( + true, + ), + }, + ], + split_size: None, + run: None, + borderless: false, + focus: None, + external_children_index: None, + children_are_stacked: false, + is_expanded_in_stack: false, + exclude_from_sync: None, + }, + [], + ), + ), + swap_layouts: [], + swap_tiled_layouts: [], + swap_floating_layouts: [], +} diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_templates.snap index c0a6055cb0..ff18632fd5 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_pane_templates.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -43,6 +44,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -52,6 +54,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -64,6 +67,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -73,6 +77,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -89,6 +94,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -105,6 +111,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -117,6 +124,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -126,6 +134,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -138,6 +147,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -147,6 +157,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -163,6 +174,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -179,6 +191,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -191,6 +204,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -200,6 +214,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -212,6 +227,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -221,6 +237,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -237,6 +254,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -249,6 +267,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -261,6 +280,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -270,6 +290,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -279,6 +300,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap index 922932c8f5..78f47b4935 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tab_and_pane_templates.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -52,6 +53,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -61,6 +63,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -73,6 +76,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -82,6 +86,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -91,6 +96,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -109,6 +115,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tabs_and_floating_panes.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tabs_and_floating_panes.snap index 3ea06c6cd8..b993cec3e0 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tabs_and_floating_panes.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_tabs_and_floating_panes.snap @@ -22,6 +22,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -31,6 +32,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [ FloatingPaneLayout { @@ -61,6 +63,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -70,6 +73,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [ FloatingPaneLayout { @@ -107,6 +111,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_is_overriden_by_its_consumers_bare_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_is_overriden_by_its_consumers_bare_cwd.snap index 9a8f037e3f..849b9b6d1f 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_is_overriden_by_its_consumers_bare_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_is_overriden_by_its_consumers_bare_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_overriden_by_its_consumers_command_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_overriden_by_its_consumers_command_cwd.snap index 4cc09f3340..e7b200fd55 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_overriden_by_its_consumers_command_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_overriden_by_its_consumers_command_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_remains_when_its_consumer_command_does_not_have_a_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_remains_when_its_consumer_command_does_not_have_a_cwd.snap index 93af65c6b9..ed4a906b4e 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_remains_when_its_consumer_command_does_not_have_a_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_with_cwd_remains_when_its_consumer_command_does_not_have_a_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_is_overriden_by_its_consumers_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_is_overriden_by_its_consumers_cwd.snap index 6f3eadfa58..0fc98b67bd 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_is_overriden_by_its_consumers_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_is_overriden_by_its_consumers_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_receives_its_consumers_bare_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_receives_its_consumers_bare_cwd.snap index 7e899c39e6..8f0411100e 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_receives_its_consumers_bare_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_command_without_cwd_receives_its_consumers_bare_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_cwd_overriden_by_its_consumers_bare_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_cwd_overriden_by_its_consumers_bare_cwd.snap index 6395def88a..9fc4aaf122 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_cwd_overriden_by_its_consumers_bare_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_cwd_overriden_by_its_consumers_bare_cwd.snap @@ -27,6 +27,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -36,6 +37,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_with_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_with_cwd.snap index 2615e5f17a..d0125554fb 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_with_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_with_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_without_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_without_cwd.snap index e4506f3571..d9bbf77a88 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_without_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_command_without_cwd.snap @@ -35,6 +35,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -44,6 +45,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_edit.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_edit.snap index 64641debd2..be2f0fb428 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_edit.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_bare_propagated_to_its_consumer_edit.snap @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1614 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -31,6 +30,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -40,6 +40,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_command_propagated_to_its_consumer_edit.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_command_propagated_to_its_consumer_edit.snap index 9ed7fb776e..a33fc2bdac 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_command_propagated_to_its_consumer_edit.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__pane_template_with_command_propagated_to_its_consumer_edit.snap @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1630 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -31,6 +30,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -40,6 +40,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_given_to_panes_without_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_given_to_panes_without_cwd.snap index 32ae0b59c0..a74656108e 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_given_to_panes_without_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_given_to_panes_without_cwd.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +51,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -63,6 +65,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -81,6 +84,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_prepended_to_panes_with_cwd.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_prepended_to_panes_with_cwd.snap index 6334e791f2..65ed2b5031 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_prepended_to_panes_with_cwd.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__tab_cwd_prepended_to_panes_with_cwd.snap @@ -26,6 +26,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +51,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -63,6 +65,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -81,6 +84,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/kdl/kdl_layout_parser.rs b/zellij-utils/src/kdl/kdl_layout_parser.rs index 570824a0e0..9af0561de7 100644 --- a/zellij-utils/src/kdl/kdl_layout_parser.rs +++ b/zellij-utils/src/kdl/kdl_layout_parser.rs @@ -92,6 +92,7 @@ impl<'a> KdlLayoutParser<'a> { || property_name == "children" || property_name == "stacked" || property_name == "expanded" + || property_name == "exclude_from_sync" } fn is_a_valid_floating_pane_property(&self, property_name: &str) -> bool { property_name == "borderless" @@ -445,6 +446,8 @@ impl<'a> KdlLayoutParser<'a> { let focus = kdl_get_bool_property_or_child_value_with_error!(kdl_node, "focus"); let name = kdl_get_string_property_or_child_value_with_error!(kdl_node, "name") .map(|name| name.to_string()); + let exclude_from_sync = + kdl_get_bool_property_or_child_value_with_error!(kdl_node, "exclude_from_sync"); let split_size = self.parse_split_size(kdl_node)?; let run = self.parse_command_plugin_or_edit_block(kdl_node)?; let children_split_direction = self.parse_split_direction(kdl_node)?; @@ -483,6 +486,7 @@ impl<'a> KdlLayoutParser<'a> { run, children_split_direction, external_children_index, + exclude_from_sync, children, children_are_stacked, is_expanded_in_stack, @@ -605,6 +609,8 @@ impl<'a> KdlLayoutParser<'a> { kdl_get_bool_property_or_child_value_with_error!(kdl_node, "start_suspended"); let split_size = self.parse_split_size(kdl_node)?; let run = self.parse_command_plugin_or_edit_block_for_template(kdl_node)?; + let exclude_from_sync = + kdl_get_bool_property_or_child_value_with_error!(kdl_node, "exclude_from_sync"); let external_children_index = if should_mark_external_children_index { self.populate_external_children_index(kdl_node)? @@ -641,6 +647,9 @@ impl<'a> KdlLayoutParser<'a> { if let Some(name) = name { pane_template.name = Some(name); } + if let Some(exclude_from_sync) = exclude_from_sync { + pane_template.exclude_from_sync = Some(exclude_from_sync); + } if let Some(split_size) = split_size { pane_template.split_size = Some(split_size); } @@ -1971,7 +1980,7 @@ impl<'a> KdlLayoutParser<'a> { .unwrap_or_else(|| TiledPaneLayout::default()); Ok(Layout { - tabs: tabs, + tabs, template: Some((template, vec![])), focused_tab_index, swap_tiled_layouts, diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__cli_arguments_override_layout_options-2.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__cli_arguments_override_layout_options-2.snap index 830365bd33..452f0a8be5 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__cli_arguments_override_layout_options-2.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__cli_arguments_override_layout_options-2.snap @@ -19,6 +19,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments-2.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments-2.snap index cebcb3a456..2af2cb5672 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments-2.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__default_config_with_no_cli_arguments-2.snap @@ -1,6 +1,5 @@ --- source: zellij-utils/src/setup.rs -assertion_line: 622 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -38,6 +37,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -50,6 +50,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -77,6 +78,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -86,6 +88,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ), @@ -126,6 +129,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -146,6 +150,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -160,6 +165,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -169,6 +175,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -178,6 +185,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -205,6 +213,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -214,6 +223,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 8, @@ -247,6 +257,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -269,6 +280,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -285,6 +297,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -297,6 +310,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -309,6 +323,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -321,6 +336,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -330,6 +346,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -339,6 +356,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -348,6 +366,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -375,6 +394,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -384,6 +404,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 12, @@ -417,6 +438,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -439,6 +461,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -455,6 +478,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -467,6 +491,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -479,6 +504,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -491,6 +517,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -500,6 +527,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -516,6 +544,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -528,6 +557,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -540,6 +570,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -552,6 +583,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -561,6 +593,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -570,6 +603,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -579,6 +613,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -606,6 +641,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -615,6 +651,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, }, Some( @@ -655,6 +692,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -671,6 +709,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -683,6 +722,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -692,6 +732,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -719,6 +760,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -728,6 +770,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 8, @@ -761,6 +804,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -783,6 +827,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -799,6 +844,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -811,6 +857,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -823,6 +870,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -835,6 +883,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -844,6 +893,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -853,6 +903,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -862,6 +913,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -889,6 +941,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -898,6 +951,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, MaxPanes( 12, @@ -931,6 +985,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -953,6 +1008,7 @@ Layout { ), children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -969,6 +1025,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -981,6 +1038,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -993,6 +1051,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1005,6 +1064,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1014,6 +1074,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Vertical, @@ -1030,6 +1091,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1042,6 +1104,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1054,6 +1117,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1066,6 +1130,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1075,6 +1140,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1084,6 +1150,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1093,6 +1160,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1120,6 +1188,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1129,6 +1198,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, }, Some( @@ -1169,6 +1239,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1189,6 +1260,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1203,6 +1275,7 @@ Layout { ), children_are_stacked: true, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1212,6 +1285,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1221,6 +1295,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, TiledPaneLayout { children_split_direction: Horizontal, @@ -1248,6 +1323,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, ], split_size: None, @@ -1257,6 +1333,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, }, Some( diff --git a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_options_override_config_options-2.snap b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_options_override_config_options-2.snap index b4a7ed0c30..4caba6fbe7 100644 --- a/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_options_override_config_options-2.snap +++ b/zellij-utils/src/snapshots/zellij_utils__setup__setup_test__layout_options_override_config_options-2.snap @@ -19,6 +19,7 @@ Layout { external_children_index: None, children_are_stacked: false, is_expanded_in_stack: false, + exclude_from_sync: None, }, [], ),