fix(ui): add split right/down shortcut hints to the status-bar (#4046)

This commit is contained in:
Aram Drevekenin 2025-03-06 10:15:20 +01:00 committed by GitHub
parent 1a8c3d7c94
commit 7f417e552f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1273,6 +1273,8 @@ fn get_keys_and_hints(mi: &ModeInfo) -> Vec<(String, String, Vec<KeyWithModifier
(s("Toggle Floating"), s("Floating"), (s("Toggle Floating"), s("Floating"),
single_action_key(&km, &[A::ToggleFloatingPanes, TO_NORMAL])), single_action_key(&km, &[A::ToggleFloatingPanes, TO_NORMAL])),
(s("Toggle Embed"), s("Embed"), single_action_key(&km, &[A::TogglePaneEmbedOrFloating, TO_NORMAL])), (s("Toggle Embed"), s("Embed"), single_action_key(&km, &[A::TogglePaneEmbedOrFloating, TO_NORMAL])),
(s("Split Right"), s("Right"), single_action_key(&km, &[A::NewPane(Some(Direction::Right), None, false), TO_NORMAL])),
(s("Split Down"), s("Down"), single_action_key(&km, &[A::NewPane(Some(Direction::Down), None, false), TO_NORMAL])),
(s("Select pane"), s("Select"), to_basemode_key), (s("Select pane"), s("Select"), to_basemode_key),
]} else if mi.mode == IM::Tab { ]} else if mi.mode == IM::Tab {
// With the default bindings, "Move focus" for tabs is tricky: It binds all the arrow keys // With the default bindings, "Move focus" for tabs is tricky: It binds all the arrow keys