diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-01-20 10:13:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-20 10:13:37 +0100 |
| commit | 03c86d09cf301db9a62427170f956a632812d67e (patch) | |
| tree | 5eee73d6201cbe2066ec258a0b7612e84e97aa6d /zellij-utils/src | |
| parent | Fix: allow 0% coordinate specification for floating panes (#4609) (diff) | |
| download | sl0ppij-03c86d09cf301db9a62427170f956a632812d67e.tar.gz sl0ppij-03c86d09cf301db9a62427170f956a632812d67e.tar.xz sl0ppij-03c86d09cf301db9a62427170f956a632812d67e.zip | |
Allow toggling pane frames for specific panes (#4615)
* initial implementation
* add borderless to edit and plugin cli commands
* allow changing existing pane to borderless
* allow setting in layouts and keybindings
* get to work through the existing plugin api commands
* fix when applying (swap) layouts
* fix tests
* allow setting pane as bordered (borderful?) when changing its coordinates (eg. through the cli)
* allow explicitly setting a pane as bordered or borderless without toggling
* rustfmt
* adjust snapshots
* docs(changelog): add PR
Diffstat (limited to 'zellij-utils/src')
63 files changed, 766 insertions, 444 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index d5070f2f..3704ca56 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -438,6 +438,10 @@ pub enum Sessions { /// if set, will open the pane near the current one rather than following the user's focus #[clap(long)] near_current_pane: bool, + /// start this pane without a border (warning: will make it impossible to move with the + /// mouse) + #[clap(short, long, value_parser)] + borderless: Option<bool>, }, /// Load a plugin #[clap(visible_alias = "p")] @@ -483,6 +487,10 @@ pub enum Sessions { /// Whether to pin a floating pane so that it is always on top #[clap(long, requires("floating"))] pinned: Option<bool>, + /// start this pane without a border (warning: will make it impossible to move with the + /// mouse) + #[clap(short, long, value_parser)] + borderless: Option<bool>, }, /// Edit file with default $EDITOR / $VISUAL #[clap(visible_alias = "e")] @@ -534,6 +542,10 @@ pub enum Sessions { /// if set, will open the pane near the current one rather than following the user's focus #[clap(long)] near_current_pane: bool, + /// start this pane without a border (warning: will make it impossible to move with the + /// mouse) + #[clap(short, long, value_parser)] + borderless: Option<bool>, }, ConvertConfig { old_config_file: PathBuf, @@ -749,6 +761,10 @@ pub enum CliAction { /// if set, will open the pane near the current one rather than following the user's focus #[clap(long)] near_current_pane: bool, + /// start this pane without a border (warning: will make it impossible to move with the + /// mouse) + #[clap(short, long, value_parser)] + borderless: Option<bool>, }, /// Open the specified file in a new zellij pane with your default EDITOR Edit { @@ -799,6 +815,10 @@ pub enum CliAction { /// if set, will open the pane near the current one rather than following the user's focus #[clap(long)] near_current_pane: bool, + /// start this pane without a border (warning: will make it impossible to move with the + /// mouse) + #[clap(short, long, value_parser)] + borderless: Option<bool>, }, /// Switch input mode of all connected clients [locked|pane|tab|resize|move|search|session] SwitchMode { @@ -1098,6 +1118,23 @@ tail -f /tmp/my-live-logfile | zellij action pipe --name logs --plugin https://e /// Whether to pin a floating pane so that it is always on top #[clap(long)] pinned: Option<bool>, + /// change this pane to be with/without a border (warning: will make it impossible to move with the + /// mouse if without a border) + #[clap(short, long, value_parser)] + borderless: Option<bool>, + }, + TogglePaneBorderless { + /// The pane_id of the pane, eg. terminal_1, plugin_2 or 3 (equivalent to terminal_3) + #[clap(short, long, value_parser)] + pane_id: String, + }, + SetPaneBorderless { + /// The pane_id of the pane, eg. terminal_1, plugin_2 or 3 (equivalent to terminal_3) + #[clap(short, long, value_parser)] + pane_id: String, + /// Whether the pane should be borderless (flag present) or bordered (flag absent) + #[clap(short, long, value_parser)] + borderless: bool, }, /// Detach from the current session Detach, diff --git a/zellij-utils/src/client_server_contract/common_types.proto b/zellij-utils/src/client_server_contract/common_types.proto index 3435718f..eae6b937 100644 --- a/zellij-utils/src/client_server_contract/common_types.proto +++ b/zellij-utils/src/client_server_contract/common_types.proto @@ -225,6 +225,8 @@ message Action { TogglePanePinnedAction toggle_pane_pinned = 87; StackPanesAction stack_panes = 88; ChangeFloatingPaneCoordinatesAction change_floating_pane_coordinates = 89; + TogglePaneBorderlessAction toggle_pane_borderless = 95; + SetPaneBorderlessAction set_pane_borderless = 96; TogglePaneInGroupAction toggle_pane_in_group = 90; ToggleGroupMarkingAction toggle_group_marking = 91; SwitchSessionAction switch_session = 92; @@ -575,6 +577,15 @@ message ChangeFloatingPaneCoordinatesAction { FloatingPaneCoordinates coordinates = 2; } +message TogglePaneBorderlessAction { + PaneId pane_id = 1; +} + +message SetPaneBorderlessAction { + PaneId pane_id = 1; + bool borderless = 2; +} + // Supporting enums and messages enum InputMode { INPUT_MODE_UNSPECIFIED = 0; @@ -715,8 +726,8 @@ enum ExitReason { message OpenFilePayload { string file_to_open = 1; optional uint32 line_number = 2; - optional string cwd = 3; // Renumbered after removing column_number - optional OriginatingPlugin originating_plugin = 4; // Added missing originating_plugin field + optional string cwd = 3; + optional OriginatingPlugin originating_plugin = 4; } message FloatingPaneCoordinates { @@ -724,7 +735,8 @@ message FloatingPaneCoordinates { optional FloatingCoordinate y = 2; optional FloatingCoordinate width = 3; optional FloatingCoordinate height = 4; - optional bool pinned = 5; // Added missing pinned field + optional bool pinned = 5; + optional bool borderless = 6; } message FloatingCoordinate { @@ -751,7 +763,7 @@ message TiledPaneLayout { repeated TiledPaneLayout children = 3; optional SplitSize split_size = 4; optional Run run = 5; - bool borderless = 6; + optional bool borderless = 6; optional string focus = 7; optional bool exclude_from_sync = 8; bool children_are_stacked = 9; @@ -774,6 +786,7 @@ message FloatingPaneLayout { bool already_running = 9; optional string pane_initial_contents = 10; optional uint32 logical_position = 11; + optional bool borderless = 12; } message SwapTiledLayout { diff --git a/zellij-utils/src/data.rs b/zellij-utils/src/data.rs index b5cbcf8d..6c6237c1 100644 --- a/zellij-utils/src/data.rs +++ b/zellij-utils/src/data.rs @@ -2768,6 +2768,7 @@ pub struct FloatingPaneCoordinates { pub width: Option<PercentOrFixed>, pub height: Option<PercentOrFixed>, pub pinned: Option<bool>, + pub borderless: Option<bool>, } impl FloatingPaneCoordinates { @@ -2777,6 +2778,7 @@ impl FloatingPaneCoordinates { width: Option<String>, height: Option<String>, pinned: Option<bool>, + borderless: Option<bool>, ) -> Option<Self> { // Parse x/y coordinates - allows 0% or 0 let x = x.and_then(|x| PercentOrFixed::from_str(&x).ok()); @@ -2802,7 +2804,13 @@ impl FloatingPaneCoordinates { }) }); - if x.is_none() && y.is_none() && width.is_none() && height.is_none() && pinned.is_none() { + if x.is_none() + && y.is_none() + && width.is_none() + && height.is_none() + && pinned.is_none() + && borderless.is_none() + { None } else { Some(FloatingPaneCoordinates { @@ -2811,6 +2819,7 @@ impl FloatingPaneCoordinates { width, height, pinned, + borderless, }) } } @@ -2872,6 +2881,7 @@ impl From<PaneGeom> for FloatingPaneCoordinates { width: Some(PercentOrFixed::Fixed(pane_geom.cols.as_usize())), height: Some(PercentOrFixed::Fixed(pane_geom.rows.as_usize())), pinned: Some(pane_geom.is_pinned), + borderless: None, } } } @@ -3204,6 +3214,8 @@ pub enum PluginCommand { SetFloatingPanePinned(PaneId, bool), // bool -> should be pinned StackPanes(Vec<PaneId>), ChangeFloatingPanesCoordinates(Vec<(PaneId, FloatingPaneCoordinates)>), + TogglePaneBorderless(PaneId), + SetPaneBorderless(PaneId, bool), OpenCommandPaneNearPlugin(CommandToRun, Context), OpenTerminalNearPlugin(FileToOpen), OpenTerminalFloatingNearPlugin(FileToOpen, Option<FloatingPaneCoordinates>), diff --git a/zellij-utils/src/errors.rs b/zellij-utils/src/errors.rs index 06f69e06..081baf8b 100644 --- a/zellij-utils/src/errors.rs +++ b/zellij-utils/src/errors.rs @@ -380,6 +380,8 @@ pub enum ScreenContext { SetFloatingPanePinned, StackPanes, ChangeFloatingPanesCoordinates, + TogglePaneBorderless, + SetPaneBorderless, AddHighlightPaneFrameColorOverride, GroupAndUngroupPanes, HighlightAndUnhighlightPanes, diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs index caeadf4d..bcf79f03 100644 --- a/zellij-utils/src/input/actions.rs +++ b/zellij-utils/src/input/actions.rs @@ -451,6 +451,13 @@ pub enum Action { pane_id: PaneId, coordinates: FloatingPaneCoordinates, }, + TogglePaneBorderless { + pane_id: PaneId, + }, + SetPaneBorderless { + pane_id: PaneId, + borderless: bool, + }, TogglePaneInGroup, ToggleGroupMarking, } @@ -548,6 +555,7 @@ impl Action { blocking, unblock_condition, near_current_pane, + borderless, } => { let current_dir = get_current_dir(); // cwd should only be specified in a plugin alias if it was explicitly given to us, @@ -582,7 +590,7 @@ impl Action { let placement = if floating { NewPanePlacement::Floating(FloatingPaneCoordinates::new( - x, y, width, height, pinned, + x, y, width, height, pinned, borderless, )) } else if in_place { NewPanePlacement::InPlace { @@ -629,7 +637,9 @@ impl Action { pane_name: name, skip_cache: skip_plugin_cache, cwd, - coordinates: FloatingPaneCoordinates::new(x, y, width, height, pinned), + coordinates: FloatingPaneCoordinates::new( + x, y, width, height, pinned, borderless, + ), }]) } else if in_place { Ok(vec![Action::NewInPlacePluginPane { @@ -671,7 +681,9 @@ impl Action { Ok(vec![Action::NewFloatingPane { command: Some(run_command_action), pane_name: name, - coordinates: FloatingPaneCoordinates::new(x, y, width, height, pinned), + coordinates: FloatingPaneCoordinates::new( + x, y, width, height, pinned, borderless, + ), near_current_pane, }]) } else if in_place { @@ -701,7 +713,9 @@ impl Action { Ok(vec![Action::NewFloatingPane { command: None, pane_name: name, - coordinates: FloatingPaneCoordinates::new(x, y, width, height, pinned), + coordinates: FloatingPaneCoordinates::new( + x, y, width, height, pinned, borderless, + ), near_current_pane, }]) } else if in_place { @@ -741,6 +755,7 @@ impl Action { height, pinned, near_current_pane, + borderless, } => { let mut file = file; let current_dir = get_current_dir(); @@ -759,7 +774,9 @@ impl Action { floating, in_place, start_suppressed, - coordinates: FloatingPaneCoordinates::new(x, y, width, height, pinned), + coordinates: FloatingPaneCoordinates::new( + x, y, width, height, pinned, borderless, + ), near_current_pane, }]) }, @@ -1204,8 +1221,10 @@ impl Action { width, height, pinned, + borderless, } => { - let Some(coordinates) = FloatingPaneCoordinates::new(x, y, width, height, pinned) + let Some(coordinates) = + FloatingPaneCoordinates::new(x, y, width, height, pinned, borderless) else { return Err(format!("Failed to parse floating pane coordinates")); }; @@ -1225,6 +1244,42 @@ impl Action { } } }, + CliAction::TogglePaneBorderless { pane_id } => { + let parsed_pane_id = PaneId::from_str(&pane_id); + match parsed_pane_id { + Ok(parsed_pane_id) => { + Ok(vec![Action::TogglePaneBorderless { + pane_id: parsed_pane_id, + }]) + }, + Err(_e) => { + Err(format!( + "Malformed pane id: {}, expecting either a bare integer (eg. 1), a terminal pane id (eg. terminal_1) or a plugin pane id (eg. plugin_1)", + pane_id + )) + } + } + }, + CliAction::SetPaneBorderless { + pane_id, + borderless, + } => { + let parsed_pane_id = PaneId::from_str(&pane_id); + match parsed_pane_id { + Ok(parsed_pane_id) => { + Ok(vec![Action::SetPaneBorderless { + pane_id: parsed_pane_id, + borderless, + }]) + }, + Err(_e) => { + Err(format!( + "Malformed pane id: {}, expecting either a bare integer (eg. 1), a terminal pane id (eg. terminal_1) or a plugin pane id (eg. plugin_1)", + pane_id + )) + } + } + }, CliAction::Detach => Ok(vec![Action::Detach]), CliAction::SwitchSession { name, diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs index a7b2ebc6..75b1e70b 100644 --- a/zellij-utils/src/input/layout.rs +++ b/zellij-utils/src/input/layout.rs @@ -790,6 +790,7 @@ pub struct FloatingPaneLayout { pub x: Option<PercentOrFixed>, pub y: Option<PercentOrFixed>, pub pinned: Option<bool>, + pub borderless: Option<bool>, pub run: Option<Run>, pub focus: Option<bool>, pub already_running: bool, @@ -806,6 +807,7 @@ impl FloatingPaneLayout { x: None, y: None, pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -846,7 +848,7 @@ pub struct TiledPaneLayout { pub children: Vec<TiledPaneLayout>, pub split_size: Option<SplitSize>, pub run: Option<Run>, - pub borderless: bool, + pub borderless: Option<bool>, pub focus: Option<bool>, pub external_children_index: Option<usize>, pub children_are_stacked: bool, diff --git a/zellij-utils/src/input/unit/layout_test.rs b/zellij-utils/src/input/unit/layout_test.rs index 8a86247f..f0cbae7b 100644 --- a/zellij-utils/src/input/unit/layout_test.rs +++ b/zellij-utils/src/input/unit/layout_test.rs @@ -601,7 +601,7 @@ fn layout_with_borderless_panes() { template: Some(( TiledPaneLayout { children: vec![TiledPaneLayout { - borderless: true, + borderless: Some(true), ..Default::default() }], ..Default::default() @@ -2373,6 +2373,7 @@ fn floating_pane_coordinates_allows_zero_percent_for_x_y() { Some("50%".to_string()), Some("50%".to_string()), None, + Some(false), ); assert!(coords.is_some()); @@ -2394,6 +2395,7 @@ fn floating_pane_coordinates_rejects_zero_percent_for_width() { Some("0%".to_string()), Some("50%".to_string()), None, + Some(false), ); // Should have coords but width will be None due to rejection @@ -2414,6 +2416,7 @@ fn floating_pane_coordinates_rejects_zero_percent_for_height() { Some("50%".to_string()), Some("0%".to_string()), None, + Some(false), ); // Should have coords but height will be None due to rejection @@ -2434,6 +2437,7 @@ fn floating_pane_coordinates_static_zero_works() { Some("100".to_string()), Some("100".to_string()), None, + Some(false), ); assert!(coords.is_some()); @@ -2455,6 +2459,7 @@ fn floating_pane_coordinates_one_percent_works() { Some("50%".to_string()), Some("50%".to_string()), None, + Some(false), ); assert!(coords.is_some()); 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 84d969b1..92117f30 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -60,7 +60,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -73,7 +73,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 6abf533a..50cb55ff 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 @@ -32,7 +32,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -63,7 +63,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -76,7 +76,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 6a7e9aa6..b9c0bbf2 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: 1926 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -22,7 +21,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -38,7 +37,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -54,7 +53,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +66,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: true, @@ -80,7 +79,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 cb37a62e..1bc75b25 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1894 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -22,7 +21,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -38,7 +37,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -51,7 +50,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: true, @@ -64,7 +63,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 a73fa6bf..3de11489 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1911 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -26,7 +25,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -42,7 +41,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -55,7 +54,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: true, @@ -68,7 +67,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: true, @@ -81,7 +80,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 605b099f..164ddb71 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1938 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -18,7 +17,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -31,7 +30,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -81,7 +80,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -105,7 +106,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -121,7 +122,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -136,7 +137,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -149,7 +150,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -186,7 +187,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -199,7 +202,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -242,7 +245,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -266,7 +271,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -288,7 +293,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -304,7 +309,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -320,7 +325,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -336,7 +341,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -349,7 +354,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -362,7 +367,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -375,7 +380,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -412,7 +417,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -425,7 +432,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -468,7 +475,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -492,7 +501,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -514,7 +523,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -530,7 +539,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -546,7 +555,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -562,7 +571,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -575,7 +584,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -595,7 +604,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -611,7 +620,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -627,7 +636,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -643,7 +652,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -656,7 +665,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -669,7 +678,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -682,7 +691,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -719,7 +728,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -732,7 +743,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 40bb0581..d8debed4 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 975 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -28,7 +27,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -48,7 +47,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -64,7 +63,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -77,7 +76,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -90,7 +89,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -106,7 +105,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -119,7 +118,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -143,7 +142,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -156,7 +155,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 1, @@ -174,7 +173,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -187,7 +186,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -200,7 +199,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 9dde780b..668489c1 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 927 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -23,7 +22,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -43,7 +42,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -59,7 +58,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -72,7 +71,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -85,7 +84,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -101,7 +100,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -114,7 +113,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -142,7 +141,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -155,7 +154,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 1, @@ -173,7 +172,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -186,7 +185,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -208,7 +207,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 6241564a..afde0f8f 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -57,7 +57,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -70,7 +70,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 6241564a..afde0f8f 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -57,7 +57,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -70,7 +70,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 85b2dcfe..d1eba165 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1027 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -23,7 +22,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -45,7 +44,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -58,7 +57,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +73,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +86,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -107,7 +106,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -123,7 +122,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -136,7 +135,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -149,7 +148,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -177,7 +176,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -199,7 +198,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -212,7 +211,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -228,7 +227,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -241,7 +240,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -257,7 +256,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -270,7 +269,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -292,7 +291,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 129cfe2b..f506e101 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -59,7 +59,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -72,7 +72,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 9d8bb4f0..62a41cf5 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 @@ -31,7 +31,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -61,7 +61,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +74,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__env_var_expansion.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__env_var_expansion.snap index 2c5b1bdc..926c98b9 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__env_var_expansion.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__env_var_expansion.snap @@ -20,7 +20,7 @@ Layout { "/abs/path/relative", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -40,7 +40,7 @@ Layout { "/another/abs", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -60,7 +60,7 @@ Layout { "/another/abs", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -80,7 +80,7 @@ Layout { "/abs/path/relative", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -110,7 +110,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -134,7 +134,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -158,7 +158,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -188,7 +188,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -212,7 +212,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -229,7 +229,7 @@ Layout { "/abs/path", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -259,7 +259,7 @@ Layout { "/abs/path/relative", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -279,7 +279,7 @@ Layout { "/another/abs", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -299,7 +299,7 @@ Layout { "/another/abs", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -319,7 +319,7 @@ Layout { "/abs/path/relative", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -349,7 +349,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -373,7 +373,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -397,7 +397,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -427,7 +427,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -451,7 +451,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -468,7 +468,7 @@ Layout { "/abs/path", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 7d3c782f..100723b0 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 @@ -20,7 +20,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -89,7 +89,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 b5e33434..a904f8b8 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 @@ -24,7 +24,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -54,7 +54,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -78,7 +78,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -95,7 +95,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -112,7 +112,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -129,7 +129,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -151,7 +151,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 c9826972..c295617a 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 @@ -20,7 +20,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +74,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -91,7 +91,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -108,7 +108,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -130,7 +130,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 eca5399e..dd93444f 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 @@ -20,7 +20,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -97,7 +97,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -127,7 +127,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -144,7 +144,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 0d5a8d8c..be32b092 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 @@ -21,7 +21,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -51,7 +51,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -68,7 +68,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 fd0fc3a7..8f71561f 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 @@ -20,7 +20,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/home", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -97,7 +97,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -127,7 +127,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -144,7 +144,7 @@ Layout { "/home", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 62bce0d4..5561302c 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 @@ -20,7 +20,7 @@ Layout { "/tmp/foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -97,7 +97,7 @@ Layout { "/tmp/foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -127,7 +127,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -144,7 +144,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 2fe2a45d..ea72b0f3 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 @@ -20,7 +20,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -89,7 +89,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 e4d1e6e7..54bf2a0c 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -42,7 +42,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 6241ad1b..fb72c8d7 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 @@ -29,7 +29,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -42,7 +42,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 81abc998..5534df4c 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 786 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -19,7 +18,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -39,7 +38,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -55,7 +54,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -68,7 +67,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -84,7 +83,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -97,7 +96,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -123,7 +122,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -143,7 +142,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -159,7 +158,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -172,7 +171,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -188,7 +187,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -201,7 +200,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -225,7 +224,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -241,7 +240,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -257,7 +256,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -270,7 +269,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -296,7 +295,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -312,7 +311,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -328,7 +327,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -341,7 +340,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 42983dee..d840f90c 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 881 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -22,7 +21,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -38,7 +37,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -58,7 +57,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +73,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +86,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -107,7 +106,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -123,7 +122,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -139,7 +138,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -152,7 +151,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -165,7 +164,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -178,7 +177,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 06102b00..bf4f7934 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 855 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -22,7 +21,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -38,7 +37,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -58,7 +57,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +73,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +86,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -103,7 +102,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -116,7 +115,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -129,7 +128,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_new_tab_template.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_new_tab_template.snap index 701dd1b4..1b32a429 100644 --- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_new_tab_template.snap +++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__layout__layout_test__layout_with_new_tab_template.snap @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 846 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -19,7 +18,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -35,7 +34,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -48,7 +47,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -74,7 +73,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -90,7 +89,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -103,7 +102,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -123,7 +122,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -153,7 +152,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -169,7 +168,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -182,7 +181,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -195,7 +194,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 index 1b56c2e8..81d7fd34 100644 --- 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 1038 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -18,7 +17,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -33,7 +32,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 7a836351..4cd8c5f6 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 813 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -22,7 +21,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -42,7 +41,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -55,7 +54,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -71,7 +70,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -84,7 +83,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +103,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -124,7 +123,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -140,7 +139,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -153,7 +152,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -169,7 +168,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -182,7 +181,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -202,7 +201,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -222,7 +221,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -238,7 +237,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -251,7 +250,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -267,7 +266,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -280,7 +279,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -300,7 +299,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -316,7 +315,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -332,7 +331,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -345,7 +344,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -358,7 +357,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 5a9cdc96..c5d1e092 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 @@ -20,7 +20,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -52,7 +52,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -65,7 +65,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -81,7 +81,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -94,7 +94,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -107,7 +107,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -129,7 +129,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 95f60225..87d7ec68 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/input/./unit/layout_test.rs -assertion_line: 305 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -17,7 +16,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -30,7 +29,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -48,6 +47,7 @@ Layout { x: None, y: None, pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -68,7 +68,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -81,7 +81,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -99,6 +99,7 @@ Layout { x: None, y: None, pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -112,6 +113,7 @@ Layout { x: None, y: None, pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -130,7 +132,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 1698b575..4813f482 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 ea74b798..eee14300 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 4ab7252f..68cc0653 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 4ab7252f..68cc0653 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 1698b575..4813f482 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 9ff94a33..3663a4de 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 @@ -20,7 +20,7 @@ Layout { "/tmp/bar", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -37,7 +37,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp/bar", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -84,7 +84,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 1698b575..4813f482 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 a33edb62..b6e8054b 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 @@ -30,7 +30,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -47,7 +47,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -87,7 +87,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -104,7 +104,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 b12ec15b..dedbca10 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 @@ -24,7 +24,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -41,7 +41,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -75,7 +75,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -92,7 +92,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 c716ad07..407aa8df 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 @@ -24,7 +24,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -41,7 +41,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -75,7 +75,7 @@ Layout { ), ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -92,7 +92,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 712b4697..e281ddf0 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 @@ -20,7 +20,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -89,7 +89,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 aa4821ba..babaab58 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 @@ -20,7 +20,7 @@ Layout { "/tmp/./foo", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -50,7 +50,7 @@ Layout { }, ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -67,7 +67,7 @@ Layout { "/tmp", ), ), - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -89,7 +89,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, diff --git a/zellij-utils/src/ipc/protobuf_conversion.rs b/zellij-utils/src/ipc/protobuf_conversion.rs index 7539fa15..4b02cc7e 100644 --- a/zellij-utils/src/ipc/protobuf_conversion.rs +++ b/zellij-utils/src/ipc/protobuf_conversion.rs @@ -730,13 +730,14 @@ impl From<crate::input::actions::Action> RenameSessionAction, RenameTabAction, RenameTerminalPaneAction, ResizeAction, RunAction, ScrollDownAction, ScrollDownAtAction, ScrollToBottomAction, ScrollToTopAction, ScrollUpAction, ScrollUpAtAction, SearchAction, SearchInputAction, - SearchToggleOptionAction, SkipConfirmAction, StackPanesAction, + SearchToggleOptionAction, SetPaneBorderlessAction, SkipConfirmAction, StackPanesAction, StartOrReloadPluginAction, SwitchFocusAction, SwitchModeForAllClientsAction, SwitchSessionAction, SwitchToModeAction, TabNameInputAction, ToggleActiveSyncTabAction, ToggleFloatingPanesAction, ToggleFocusFullscreenAction, ToggleGroupMarkingAction, - ToggleMouseModeAction, TogglePaneEmbedOrFloatingAction, TogglePaneFramesAction, - TogglePaneInGroupAction, TogglePanePinnedAction, ToggleTabAction, UndoRenamePaneAction, - UndoRenameTabAction, WriteAction, WriteCharsAction, + ToggleMouseModeAction, TogglePaneBorderlessAction, TogglePaneEmbedOrFloatingAction, + TogglePaneFramesAction, TogglePaneInGroupAction, TogglePanePinnedAction, + ToggleTabAction, UndoRenamePaneAction, UndoRenameTabAction, WriteAction, + WriteCharsAction, }; use std::collections::HashMap; @@ -1282,6 +1283,18 @@ impl From<crate::input::actions::Action> pane_id: Some(pane_id.into()), coordinates: Some(coordinates.into()), }), + crate::input::actions::Action::TogglePaneBorderless { pane_id } => { + ActionType::TogglePaneBorderless(TogglePaneBorderlessAction { + pane_id: Some(pane_id.into()), + }) + }, + crate::input::actions::Action::SetPaneBorderless { + pane_id, + borderless, + } => ActionType::SetPaneBorderless(SetPaneBorderlessAction { + pane_id: Some(pane_id.into()), + borderless, + }), crate::input::actions::Action::TogglePaneInGroup => { ActionType::TogglePaneInGroup(TogglePaneInGroupAction {}) }, @@ -1876,6 +1889,23 @@ impl TryFrom<crate::client_server_contract::client_server_contract::Action> .try_into()?, }, ), + ActionType::TogglePaneBorderless(toggle_borderless_action) => { + Ok(crate::input::actions::Action::TogglePaneBorderless { + pane_id: toggle_borderless_action + .pane_id + .ok_or_else(|| anyhow!("TogglePaneBorderless missing pane_id"))? + .try_into()?, + }) + }, + ActionType::SetPaneBorderless(set_borderless_action) => { + Ok(crate::input::actions::Action::SetPaneBorderless { + pane_id: set_borderless_action + .pane_id + .ok_or_else(|| anyhow!("SetPaneBorderless missing pane_id"))? + .try_into()?, + borderless: set_borderless_action.borderless, + }) + }, ActionType::TogglePaneInGroup(_) => { Ok(crate::input::actions::Action::TogglePaneInGroup) }, @@ -2491,6 +2521,7 @@ impl From<crate::data::FloatingPaneCoordinates> width: coords.width.map(|w| w.into()), height: coords.height.map(|h| h.into()), pinned: coords.pinned, + borderless: coords.borderless, } } } @@ -2509,6 +2540,7 @@ impl TryFrom<crate::client_server_contract::client_server_contract::FloatingPane width: coords.width.map(|w| w.try_into()).transpose()?, height: coords.height.map(|h| h.try_into()).transpose()?, pinned: coords.pinned, + borderless: coords.borderless, }) } } @@ -2883,6 +2915,7 @@ impl From<crate::input::layout::FloatingPaneLayout> already_running: layout.already_running, pane_initial_contents: layout.pane_initial_contents, logical_position: layout.logical_position.map(|l| l as u32), + borderless: layout.borderless, } } } @@ -3307,6 +3340,7 @@ impl TryFrom<crate::client_server_contract::client_server_contract::FloatingPane already_running: layout.already_running, pane_initial_contents: layout.pane_initial_contents, logical_position: layout.logical_position.map(|p| p as usize), + borderless: layout.borderless, }) } } diff --git a/zellij-utils/src/ipc/tests/roundtrip_tests.rs b/zellij-utils/src/ipc/tests/roundtrip_tests.rs index 01275198..a16759e3 100644 --- a/zellij-utils/src/ipc/tests/roundtrip_tests.rs +++ b/zellij-utils/src/ipc/tests/roundtrip_tests.rs @@ -1088,7 +1088,7 @@ fn test_client_messages() { floating: true, in_place: true, start_suppressed: true, - coordinates: FloatingPaneCoordinates::new(None, None, None, None, None), + coordinates: FloatingPaneCoordinates::new(None, None, None, None, None, Some(false)), near_current_pane: false, }, terminal_id: Some(1), @@ -1116,7 +1116,8 @@ fn test_client_messages() { None, None, None, - None + None, + Some(false), ), near_current_pane: false, }, @@ -1145,7 +1146,8 @@ fn test_client_messages() { None, None, None, - None + None, + Some(false), ), near_current_pane: false, }, @@ -1174,7 +1176,8 @@ fn test_client_messages() { Some("50%".to_owned()), Some("10".to_owned()), Some("20".to_owned()), - Some(true) + Some(true), + Some(false), ), near_current_pane: false, }, @@ -1198,7 +1201,14 @@ fn test_client_messages() { floating: true, in_place: true, start_suppressed: true, - coordinates: FloatingPaneCoordinates::new(None, None, None, None, Some(false)), + coordinates: FloatingPaneCoordinates::new( + None, + None, + None, + None, + Some(false), + Some(false) + ), near_current_pane: false, }, terminal_id: Some(1), @@ -1234,7 +1244,8 @@ fn test_client_messages() { None, None, None, - None + None, + Some(false), ), near_current_pane: false, }, @@ -1264,7 +1275,8 @@ fn test_client_messages() { None, None, None, - None + None, + Some(false), ), near_current_pane: false, }, @@ -1944,6 +1956,7 @@ fn test_client_messages() { x: Some(PercentOrFixed::Percent(30)), y: Some(PercentOrFixed::Percent(40)), pinned: Some(true), + borderless: None, run: Some(Run::Cwd(PathBuf::from("/path/to/cwd"))), focus: Some(true), already_running: true, @@ -2405,7 +2418,8 @@ fn test_client_messages() { Some("10%".to_owned()), None, None, - Some(true) + Some(true), + Some(false), ), }, terminal_id: Some(1), @@ -2650,7 +2664,25 @@ fn test_client_messages() { None, None, Some("10%".to_owned()), - Some(false) + Some(false), + Some(false), + ) + .unwrap(), + }, + terminal_id: Some(1), + client_id: Some(100), + is_cli_client: true, + }); + test_client_roundtrip!(ClientToServerMsg::Action { + action: Action::ChangeFloatingPaneCoordinates { + pane_id: PaneId::Terminal(0), + coordinates: FloatingPaneCoordinates::new( + None, + None, + None, + Some("10%".to_owned()), + Some(false), + Some(true), ) .unwrap(), }, diff --git a/zellij-utils/src/kdl/kdl_layout_parser.rs b/zellij-utils/src/kdl/kdl_layout_parser.rs index 38cda189..6e1e2c76 100644 --- a/zellij-utils/src/kdl/kdl_layout_parser.rs +++ b/zellij-utils/src/kdl/kdl_layout_parser.rs @@ -573,7 +573,7 @@ impl<'a> KdlLayoutParser<'a> { }) }); Ok(TiledPaneLayout { - borderless: borderless.unwrap_or_default(), + borderless, focus, name, split_size, @@ -598,6 +598,7 @@ impl<'a> KdlLayoutParser<'a> { let x = self.parse_percent_or_fixed(kdl_node, "x", true)?; let y = self.parse_percent_or_fixed(kdl_node, "y", true)?; let pinned = kdl_get_bool_property_or_child_value_with_error!(kdl_node, "pinned"); + let borderless = kdl_get_bool_property_or_child_value_with_error!(kdl_node, "borderless"); let run = self.parse_command_plugin_or_edit_block(kdl_node)?; 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") @@ -622,6 +623,7 @@ impl<'a> KdlLayoutParser<'a> { run, focus, pinned, + borderless, pane_initial_contents, ..Default::default() }) @@ -747,7 +749,7 @@ impl<'a> KdlLayoutParser<'a> { pane_template_run_command.add_start_suspended(start_suspended); }; if let Some(borderless) = borderless { - pane_template.borderless = borderless; + pane_template.borderless = Some(borderless); } if let Some(focus) = focus { pane_template.focus = Some(focus); @@ -1135,7 +1137,7 @@ impl<'a> KdlLayoutParser<'a> { template_name, ( PaneOrFloatingPane::Pane(TiledPaneLayout { - borderless: borderless.unwrap_or_default(), + borderless, focus, split_size, run, diff --git a/zellij-utils/src/kdl/mod.rs b/zellij-utils/src/kdl/mod.rs index 16d75073..f6b8aaa6 100644 --- a/zellij-utils/src/kdl/mod.rs +++ b/zellij-utils/src/kdl/mod.rs @@ -1912,11 +1912,15 @@ impl TryFrom<(&KdlNode, &Options)> for Action { .map(|s| s.to_owned()); let pinned = command_metadata.and_then(|c_m| kdl_child_bool_value_for_entry(c_m, "pinned")); + let borderless = command_metadata + .and_then(|c_m| kdl_child_bool_value_for_entry(c_m, "borderless")); if floating { Ok(Action::NewFloatingPane { command: Some(run_command_action), pane_name: name, - coordinates: FloatingPaneCoordinates::new(x, y, width, height, pinned), + coordinates: FloatingPaneCoordinates::new( + x, y, width, height, pinned, borderless, + ), near_current_pane: false, }) } else if in_place { diff --git a/zellij-utils/src/plugin_api/action.proto b/zellij-utils/src/plugin_api/action.proto index 6b899b48..f8061bb6 100644 --- a/zellij-utils/src/plugin_api/action.proto +++ b/zellij-utils/src/plugin_api/action.proto @@ -121,6 +121,7 @@ message FloatingPaneLayout { bool already_running = 9; optional string pane_initial_contents = 10; optional uint32 logical_position = 11; + optional bool borderless = 12; } message SwapTiledLayout { @@ -230,6 +231,7 @@ message Action { NewTabPayload new_tab_payload = 51; NewInPlacePanePayload new_in_place_pane_payload = 52; OverrideLayoutPayload override_layout_payload = 53; + SetPaneBorderlessPayload set_pane_borderless_payload = 54; } } @@ -447,6 +449,7 @@ enum ActionName { NewBlockingPane = 91; NewInPlacePane = 92; OverrideLayout = 93; + SetPaneBorderless = 94; } message Position { @@ -477,6 +480,13 @@ message FloatingPaneCoordinates { optional SplitSize width = 3; optional SplitSize height = 4; optional bool pinned = 5; + optional bool borderless = 6; +} + +// SetPaneBorderlessPayload specifies the pane and borderless state +message SetPaneBorderlessPayload { + PaneId pane_id = 1; + bool borderless = 2; } // UnblockCondition specifies when a blocking pane should unblock diff --git a/zellij-utils/src/plugin_api/action.rs b/zellij-utils/src/plugin_api/action.rs index 96074948..2253d526 100644 --- a/zellij-utils/src/plugin_api/action.rs +++ b/zellij-utils/src/plugin_api/action.rs @@ -1769,6 +1769,8 @@ impl TryFrom<Action> for ProtobufAction { pane_id: _, coordinates: _, } + | Action::TogglePaneBorderless { pane_id: _ } + | Action::SetPaneBorderless { .. } | Action::SkipConfirm { action: _ } | Action::SwitchSession { .. } => Err("Unsupported action"), } @@ -2248,6 +2250,7 @@ impl TryFrom<ProtobufFloatingPaneCoordinates> for FloatingPaneCoordinates { width: protobuf_coords.width.and_then(|w| w.try_into().ok()), height: protobuf_coords.height.and_then(|h| h.try_into().ok()), pinned: protobuf_coords.pinned, + borderless: protobuf_coords.borderless, }) } } @@ -2261,6 +2264,7 @@ impl TryFrom<FloatingPaneCoordinates> for ProtobufFloatingPaneCoordinates { width: coords.width.and_then(|w| w.try_into().ok()), height: coords.height.and_then(|h| h.try_into().ok()), pinned: coords.pinned, + borderless: coords.borderless, }) } } @@ -2802,7 +2806,7 @@ impl TryFrom<ProtobufTiledPaneLayout> for TiledPaneLayout { children, split_size, run, - borderless: protobuf.borderless, + borderless: Some(protobuf.borderless), focus, external_children_index: protobuf.external_children_index.map(|i| i as usize), children_are_stacked: protobuf.children_are_stacked, @@ -2834,7 +2838,7 @@ impl TryFrom<TiledPaneLayout> for ProtobufTiledPaneLayout { children, split_size, run, - borderless: internal.borderless, + borderless: internal.borderless.unwrap_or(false), focus, external_children_index: internal.external_children_index.map(|i| i as u32), children_are_stacked: internal.children_are_stacked, @@ -2866,6 +2870,7 @@ impl TryFrom<ProtobufFloatingPaneLayout> for FloatingPaneLayout { already_running: protobuf.already_running, pane_initial_contents: protobuf.pane_initial_contents, logical_position: protobuf.logical_position.map(|p| p as usize), + borderless: protobuf.borderless, }) } } @@ -2890,6 +2895,7 @@ impl TryFrom<FloatingPaneLayout> for ProtobufFloatingPaneLayout { already_running: internal.already_running, pane_initial_contents: internal.pane_initial_contents, logical_position: internal.logical_position.map(|p| p as u32), + borderless: internal.borderless, }) } } diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index 0a0ad2b0..9c529013 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -176,6 +176,8 @@ enum CommandName { RenameLayout = 181; GetLayoutDir = 182; GetFocusedPaneInfo = 183; + TogglePaneBorderless = 184; + SetPaneBorderless = 185; } message PluginCommand { @@ -301,6 +303,8 @@ message PluginCommand { GetLayoutDirPayload get_layout_dir_payload = 132; DumpSessionLayoutPayload dump_session_layout_payload = 133; GetFocusedPaneInfoPayload get_focused_pane_info_payload = 134; + TogglePaneBorderlessPayload toggle_pane_borderless_payload = 135; + SetPaneBorderlessPayload set_pane_borderless_payload = 136; } } @@ -432,6 +436,15 @@ message SetFloatingPanePinnedPayload { bool should_be_pinned = 2; } +message TogglePaneBorderlessPayload { + PaneId pane_id = 1; +} + +message SetPaneBorderlessPayload { + PaneId pane_id = 1; + bool borderless = 2; +} + message ChangeHostFolderPayload { string new_host_folder = 1; } @@ -711,6 +724,7 @@ message FloatingPaneCoordinates { optional FixedOrPercentValue width = 3; optional FixedOrPercentValue height = 4; optional bool pinned = 5; + optional bool borderless = 6; } message FixedOrPercentValue { diff --git a/zellij-utils/src/plugin_api/plugin_command.rs b/zellij-utils/src/plugin_api/plugin_command.rs index d26ab7ec..da0f4599 100644 --- a/zellij-utils/src/plugin_api/plugin_command.rs +++ b/zellij-utils/src/plugin_api/plugin_command.rs @@ -46,9 +46,10 @@ pub use super::generated_api::api::{ RunActionPayload, RunCommandPayload, SaveLayoutPayload, SaveLayoutResponse as ProtobufSaveLayoutResponse, ScrollDownInPaneIdPayload, ScrollToBottomInPaneIdPayload, ScrollToTopInPaneIdPayload, ScrollUpInPaneIdPayload, - SetFloatingPanePinnedPayload, SetSelfMouseSelectionSupportPayload, SetTimeoutPayload, - ShowCursorPayload, ShowPaneWithIdPayload, StackPanesPayload, SubscribePayload, - SwitchSessionPayload, SwitchTabToPayload, TogglePaneEmbedOrEjectForPaneIdPayload, + SetFloatingPanePinnedPayload, SetPaneBorderlessPayload, + SetSelfMouseSelectionSupportPayload, SetTimeoutPayload, ShowCursorPayload, + ShowPaneWithIdPayload, StackPanesPayload, SubscribePayload, SwitchSessionPayload, + SwitchTabToPayload, TogglePaneBorderlessPayload, TogglePaneEmbedOrEjectForPaneIdPayload, TogglePaneIdFullscreenPayload, UnsubscribePayload, WebRequestPayload, WriteCharsToPaneIdPayload, WriteToPaneIdPayload, }, @@ -117,6 +118,7 @@ impl Into<FloatingPaneCoordinates> for ProtobufFloatingPaneCoordinates { } }), pinned: self.pinned, + borderless: self.borderless, } } } @@ -169,6 +171,7 @@ impl Into<ProtobufFloatingPaneCoordinates> for FloatingPaneCoordinates { None => None, }, pinned: self.pinned, + borderless: self.borderless, } } } @@ -1682,6 +1685,29 @@ impl TryFrom<ProtobufPluginCommand> for PluginCommand { _ => Err("Mismatched payload for ChangeFloatingPanesCoordinates"), } }, + Some(CommandName::TogglePaneBorderless) => match protobuf_plugin_command.payload { + Some(Payload::TogglePaneBorderlessPayload(toggle_payload)) => { + match toggle_payload.pane_id { + Some(pane_id) => { + Ok(PluginCommand::TogglePaneBorderless(pane_id.try_into()?)) + }, + None => Err("Malformed TogglePaneBorderless payload"), + } + }, + _ => Err("Mismatched payload for TogglePaneBorderless"), + }, + Some(CommandName::SetPaneBorderless) => match protobuf_plugin_command.payload { + Some(Payload::SetPaneBorderlessPayload(payload)) => { + match (payload.pane_id, payload.borderless) { + (Some(pane_id), borderless) => Ok(PluginCommand::SetPaneBorderless( + pane_id.try_into()?, + borderless, + )), + _ => Err("Malformed SetPaneBorderless payload"), + } + }, + _ => Err("Mismatched payload for SetPaneBorderless"), + }, Some(CommandName::OpenCommandPaneNearPlugin) => match protobuf_plugin_command.payload { Some(Payload::OpenCommandPaneNearPluginPayload(command_to_run_payload)) => { match command_to_run_payload.command_to_run { @@ -3067,6 +3093,23 @@ impl TryFrom<PluginCommand> for ProtobufPluginCommand { }, )), }), + PluginCommand::TogglePaneBorderless(pane_id) => Ok(ProtobufPluginCommand { + name: CommandName::TogglePaneBorderless as i32, + payload: Some(Payload::TogglePaneBorderlessPayload( + TogglePaneBorderlessPayload { + pane_id: Some(pane_id.try_into()?), + }, + )), + }), + PluginCommand::SetPaneBorderless(pane_id, borderless) => Ok(ProtobufPluginCommand { + name: CommandName::SetPaneBorderless as i32, + payload: Some(Payload::SetPaneBorderlessPayload( + SetPaneBorderlessPayload { + pane_id: Some(pane_id.try_into()?), + borderless, + }, + )), + }), PluginCommand::OpenCommandPaneNearPlugin(command_to_run, context) => { let context: Vec<_> = context .into_iter() diff --git a/zellij-utils/src/session_serialization.rs b/zellij-utils/src/session_serialization.rs index 837a3bf2..bb61b42f 100644 --- a/zellij-utils/src/session_serialization.rs +++ b/zellij-utils/src/session_serialization.rs @@ -363,7 +363,7 @@ fn serialize_tiled_layout_attributes( None => (), }; } - if layout.borderless { + if layout.borderless.unwrap_or(false) { kdl_node .entries_mut() .push(KdlEntry::new_prop("borderless", KdlValue::Bool(true))); @@ -721,14 +721,14 @@ fn tiled_pane_layout_from_manifest( } ( run, - g.is_borderless, + Some(g.is_borderless), g.geom.is_stacked() && g.geom.rows.inner > 1, g.title.clone(), Some(g.is_focused), g.pane_contents.clone(), ) }) - .unwrap_or((None, false, false, None, None, None)); + .unwrap_or((None, None, false, None, None, None)); TiledPaneLayout { split_size, run, @@ -844,6 +844,7 @@ fn get_floating_panes_layout_from_panegeoms( already_running: false, pane_initial_contents: m.pane_contents.clone(), logical_position: None, + borderless: Some(m.is_borderless), } }) .collect() 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 276c2fb3..690ba613 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/setup.rs -assertion_line: 715 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -14,7 +13,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, 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 b8708784..191e8ba4 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: 756 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -37,7 +36,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -53,7 +54,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -88,7 +89,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -101,7 +104,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -149,7 +152,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -173,7 +178,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -189,7 +194,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -204,7 +209,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -217,7 +222,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -252,7 +257,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -265,7 +272,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -306,7 +313,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -330,7 +339,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -352,7 +361,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -368,7 +377,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -384,7 +393,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -400,7 +409,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -413,7 +422,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -426,7 +435,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -439,7 +448,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -474,7 +483,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -487,7 +498,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -528,7 +539,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -552,7 +565,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -574,7 +587,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -590,7 +603,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -606,7 +619,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -622,7 +635,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -635,7 +648,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -655,7 +668,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -671,7 +684,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -687,7 +700,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -703,7 +716,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -716,7 +729,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -729,7 +742,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -742,7 +755,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -777,7 +790,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -790,7 +805,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -838,7 +853,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -858,7 +875,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -874,7 +891,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -887,7 +904,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -922,7 +939,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -935,7 +954,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -976,7 +995,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1000,7 +1021,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -1022,7 +1043,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1038,7 +1059,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1054,7 +1075,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1070,7 +1091,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1083,7 +1104,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1096,7 +1117,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1109,7 +1130,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1144,7 +1165,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1157,7 +1180,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1198,7 +1221,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1222,7 +1247,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -1244,7 +1269,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1260,7 +1285,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1276,7 +1301,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1292,7 +1317,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1305,7 +1330,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1325,7 +1350,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1341,7 +1366,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1357,7 +1382,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1373,7 +1398,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1386,7 +1411,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1399,7 +1424,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1412,7 +1437,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1447,7 +1472,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1460,7 +1487,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1508,7 +1535,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1532,7 +1561,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1548,7 +1577,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: Some( 0, @@ -1563,7 +1592,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1576,7 +1605,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1611,7 +1640,9 @@ Layout { ), ), ), - borderless: true, + borderless: Some( + true, + ), focus: None, external_children_index: None, children_are_stacked: false, @@ -1624,7 +1655,7 @@ Layout { ], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, @@ -1677,6 +1708,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1706,6 +1738,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1735,6 +1768,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1764,6 +1798,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1793,6 +1828,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1822,6 +1858,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1851,6 +1888,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1880,6 +1918,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1909,6 +1948,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1938,6 +1978,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1970,6 +2011,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -1999,6 +2041,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2024,6 +2067,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2053,6 +2097,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2078,6 +2123,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2103,6 +2149,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2136,6 +2183,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2165,6 +2213,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2194,6 +2243,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, @@ -2223,6 +2273,7 @@ Layout { ), ), pinned: None, + borderless: None, run: None, focus: None, already_running: false, 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 a57f4fd5..690ba613 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 @@ -1,6 +1,5 @@ --- source: zellij-utils/src/setup.rs -assertion_line: 697 expression: "format!(\"{:#?}\", layout)" --- Layout { @@ -14,7 +13,7 @@ Layout { children: [], split_size: None, run: None, - borderless: false, + borderless: None, focus: None, external_children_index: None, children_are_stacked: false, |
