mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-31 21:31:32 +00:00
I don't totally follow how the `cmd_click_reveal_task` function works, but it branches on whether `self.hovered_link_state` exists and contains any links, and in case it doesn't, it doesn't use `modifiers.alt` for deciding where to navigate. This PR addresses that. The problem I've been having is that cmd-alt-click sometimes behaves as cmd-click, i.e. it navigates to the definition in the current pane. This appears to happen whenever I cmd-alt-click while the symbol I'm hovering over isn't underlined, possibly when I click too quickly? An alternative way to reliably reproduce this is to cmd-alt-click on a symbol without letting go of cmd and alt and without moving the cursor. Now the symbol is no longer underlined (and the hover preview has disappeared as well), so clicking again (while still holding cmd and alt) goes to the definition in the current pane: https://github.com/user-attachments/assets/34003e01-fd95-4741-8a7d-6240d1c5a495 Release notes: - Fixed a bug that caused cmd-alt-click to sometimes go to the definition in the current pane Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com> |
||
|---|---|---|
| .. | ||
| benches | ||
| src | ||
| Cargo.toml | ||
| LICENSE-GPL | ||