Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add arrow key movements to terminal vi mode (#22103)
Alejandro Gómez-Londoñocbd2e81a7ef0
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 8f1afad3d55..6a33ecb8388 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -1183,10 +1183,10 @@ impl Terminal {}let motion: Option<ViMotion> = match key.as_str() {- "h" => Some(ViMotion::Left),- "j" => Some(ViMotion::Down),- "k" => Some(ViMotion::Up),- "l" => Some(ViMotion::Right),+ "h" | "left" => Some(ViMotion::Left),+ "j" | "down" => Some(ViMotion::Down),+ "k" | "up" => Some(ViMotion::Up),+ "l" | "right" => Some(ViMotion::Right),"w" => Some(ViMotion::WordRight),"b" if !keystroke.modifiers.control => Some(ViMotion::WordLeft),"e" => Some(ViMotion::WordRightEnd),