diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-08-02 11:41:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 11:41:51 +0200 |
commit | 192e6fd31ece0c73f8962f4af620a2757a2c1a2e (patch) | |
tree | 6ae03596196acf35f6c71cc4dc79c309f2917d8b /default-plugins/status-bar/src | |
parent | 8fb90391c8bb558726c029732ac753318021e144 (diff) |
feat(ui): break pane to new tab and move panes between tabs (#2664)
* prototype
* some tests
* break out floating pane
* break out plugin panes
* add keybind and fix some minor issues
* remove cli
* move pane to left/right tab
* update ui
* adjust ui
* style(fmt): rustfmt
* style(comment): remove commented code
* update snapshots
Diffstat (limited to 'default-plugins/status-bar/src')
-rw-r--r-- | default-plugins/status-bar/src/second_line.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/default-plugins/status-bar/src/second_line.rs b/default-plugins/status-bar/src/second_line.rs index 015618f06..e39231744 100644 --- a/default-plugins/status-bar/src/second_line.rs +++ b/default-plugins/status-bar/src/second_line.rs @@ -166,7 +166,12 @@ fn get_keys_and_hints(mi: &ModeInfo) -> Vec<(String, String, Vec<Key>)> { (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("Toggle"), s("Toggle"), action_key(&km, &[A::ToggleTab])), + (s("Break pane to new tab"), s("Break"), action_key(&km, &[A::BreakPane, TO_NORMAL])), + (s("Break pane to next/prev tab"), s("Break next/prev"), + action_key_group(&km, &[ + &[A::BreakPaneLeft, TO_NORMAL], + &[A::BreakPaneRight, TO_NORMAL] + ])), (s("Select pane"), s("Select"), to_normal_key), ]} else if mi.mode == IM::Resize { vec![ (s("Increase/Decrease size"), s("Increase/Decrease"), |