Match Zellij tab and pane navigation shortcuts

This commit is contained in:
2026-11-17 01:32:41 -08:00
parent 79553a180e
commit 4655f8149b
5 changed files with 112 additions and 21 deletions
+1 -15
View File
@@ -116,21 +116,7 @@ impl Workspace {
{
return;
}
let action = if command {
match key.key.to_lowercase().as_str() {
"t" => Some(CommandAction::NewTab),
"d" => Some(CommandAction::SplitPane),
"w" => Some(CommandAction::ClosePane),
"r" => Some(CommandAction::RenamePane),
"c" => Some(CommandAction::Copy),
"v" => Some(CommandAction::Paste),
"left" => Some(CommandAction::PreviousPane),
"right" => Some(CommandAction::NextPane),
_ => None,
}
} else {
None
};
let action = crate::bindings::action_for_key(key);
if let Some(action) = action {
self.execute(action, window, cx);
cx.stop_propagation();