From 670c31c5479cea7e21774e55d7f17f79ef0277eb Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 29 Aug 2023 17:49:01 +0200 Subject: [PATCH 1/2] fix(status-bar): add break tab hints --- default-plugins/status-bar/src/second_line.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/default-plugins/status-bar/src/second_line.rs b/default-plugins/status-bar/src/second_line.rs index e505e66aad..d31218fd3c 100644 --- a/default-plugins/status-bar/src/second_line.rs +++ b/default-plugins/status-bar/src/second_line.rs @@ -180,6 +180,11 @@ fn get_keys_and_hints(mi: &ModeInfo) -> Vec<(String, String, Vec)> { (s("Rename"), s("Rename"), action_key(&km, &[A::SwitchToMode(IM::RenameTab), A::TabNameInput(vec![0])])), (s("Sync"), s("Sync"), action_key(&km, &[A::ToggleActiveSyncTab, TO_NORMAL])), + (s("Break pane to new tab"), s("Break out"), action_key(&km, &[A::BreakPane, TO_NORMAL])), + (s("Break pane left/right"), s("Break"), action_key_group(&km, &[ + &[Action::BreakPaneLeft, TO_NORMAL], + &[Action::BreakPaneRight, TO_NORMAL], + ])), (s("Toggle"), s("Toggle"), action_key(&km, &[A::ToggleTab])), (s("Select pane"), s("Select"), to_normal_key), ]} else if mi.mode == IM::Resize { vec![ From 1680ed673982034d9009a5896ba319824dc73c3b Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Tue, 29 Aug 2023 20:24:03 +0200 Subject: [PATCH 2/2] fix(tests): update snapshot to new hints --- .../zellij__tests__e2e__cases__mirrored_sessions-2.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__mirrored_sessions-2.snap b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__mirrored_sessions-2.snap index 205ff40c73..9a9efdfc7b 100644 --- a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__mirrored_sessions-2.snap +++ b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__mirrored_sessions-2.snap @@ -26,4 +26,4 @@ expression: second_runner_snapshot │ ││ │ └──────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────────────┘ Ctrl + LOCK 

PANE  TAB  RESIZE  MOVE  SEARCH  SESSION  QUIT  - New / <←→> Change focus / Close / Rename / Sync / Toggle / Select pane + New / <←→> Move / Close / Rename / Sync / Break out / <[]> Break / Toggle ...