Match Zellij tab and pane navigation shortcuts
This commit is contained in:
+1
-15
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user