Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: Open file on double-click in status list (#47989)
Xiaobo Liua2dbf0439f6a
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex c57150355f1..33ad03ffcaa 100644--- a/crates/git_ui/src/git_panel.rs+++ b/crates/git_ui/src/git_panel.rs@@ -5072,7 +5072,7 @@ impl GitPanel {cx.listener(move |this, event: &ClickEvent, window, cx| {this.selected_entry = Some(ix);cx.notify();- if event.modifiers().secondary() {+ if event.click_count() > 1 || event.modifiers().secondary() {this.open_file(&Default::default(), window, cx)} else {this.open_diff(&Default::default(), window, cx);