Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add support for Visual Line select in terminal vi mode (#63251)
Pranav Bansalc8dfe26a7e55
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rsindex 2df896256ec..37c32e9f97e 100644--- a/crates/terminal/src/terminal.rs+++ b/crates/terminal/src/terminal.rs@@ -2344,6 +2344,15 @@ impl Terminal {.push_back(InternalEvent::SetSelection(Some(selection)));}+ "V" => {+ let point = self.last_content.cursor.point;+ let selection_type = SelectionType::Lines;+ let side = SelectionSide::Right;+ let selection = Selection::new(selection_type, point, side);+ self.events+ .push_back(InternalEvent::SetSelection(Some(selection)));+ }+"escape" => {self.events.push_back(InternalEvent::SetSelection(None));}