Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Vim rename via menu too? (#14617)

Conrad Irwinacc9c2421b6a
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 6c6035d4e1e..99a7043156c 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -9491,6 +9491,11 @@ impl Editor {
}
editor
});
+ cx.subscribe(&rename_editor, |_, _, e, cx| match e {
+ EditorEvent::Focused => cx.emit(EditorEvent::FocusedIn),
+ _ => {}
+ })
+ .detach();
let write_highlights =
this.clear_background_highlights::<DocumentHighlightWrite>(cx);