From a2dbf0439f6a63201e8eb7f58c06c63b8c65bffd Mon Sep 17 00:00:00 2001 From: Xiaobo Liu Date: Sun, 1 Feb 2026 03:13:14 +0800 Subject: [PATCH] git_ui: Open file on double-click in status list (#47989) Release Notes: - Improved open file on double-click in status list Signed-off-by: Xiaobo Liu --- crates/git_ui/src/git_panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index c57150355f11663d0ac37493a8331e78a04e8d65..33ad03ffcaaa349b206f4eda59ef4689d66b3d0b 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);