Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Add `multiple_selections` key context (#60018)
AidanV5f180e06dc4e
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex d8717dadce2..31ddc4b5c49 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -2738,6 +2738,9 @@ impl Editor {}let disjoint = self.selections.disjoint_anchors();+ if disjoint.len() > 1 {+ key_context.add("multiple_selections");+ }if matches!(&self.mode,EditorMode::SingleLine | EditorMode::AutoHeight { .. }