zed icon indicating copy to clipboard operation
zed copied to clipboard

Golang Some methods cannot be navigated

Open FiyZou opened this issue 5 months ago • 8 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

I'm using Zed on the macOS system, and I'm unable to use cmd + left mouse click to navigate to my own methods. I'm not sure if my description is accurate, so I've attached a GIF image to illustrate the issue.

Environment

image image

If applicable, add mockups / screenshots to help explain present your vision of the feature

20240201-155142

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

FiyZou avatar Feb 01 '24 07:02 FiyZou

Since you are already on the definition of TrimSpace, where do you expect the click to go?

mrnugget avatar Feb 01 '24 08:02 mrnugget

I hope that clicking on the TrimSpace method under handleTrimSpace can take me to the places where the method is being called. Currently, my clicks are not allowing me to navigate to the references of the method.

Thorsten Ball @.***> 于2024年2月1日周四 16:00写道:

Since you are already on the definition of TrimSpace, where do you expect the click to go?

— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/7192#issuecomment-1920718315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJZGOF24OG2IXWMRCBZ423YRNDTDAVCNFSM6AAAAABCUNGS5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQG4YTQMZRGU . You are receiving this because you authored the thread.Message ID: @.***>

FiyZou avatar Feb 01 '24 08:02 FiyZou

@Zev3691 I guess Zed doesn't have this feature(cmd+click to find reference(s) on a symbol) for now. You can try to right-click on that symbol.

TENX-S avatar Feb 01 '24 08:02 TENX-S

Perhaps I should change the habits I brought from VSCode. wish Zed can support this feature soon.

FiyZou avatar Feb 01 '24 08:02 FiyZou

Yeah, you can right click and select Find all references. But we don't support this on click.

Should we close the issue or convert it into a feature request?

mrnugget avatar Feb 01 '24 08:02 mrnugget

+1 for converting it into a FR. Because I have that habit too.

TENX-S avatar Feb 01 '24 08:02 TENX-S

Yeah, you can right click and select Find all references. But we don't support this on click.

Should we close the issue or convert it into a feature request?

Respecting your arrangement, for now, I can use the right-click as a substitute.

FiyZou avatar Feb 01 '24 08:02 FiyZou

Hey, we have an issue tracking this exact feature (I've been wanting this for a long time 😂)

  • https://github.com/zed-industries/zed/issues/5351

JosephTLyons avatar Feb 01 '24 21:02 JosephTLyons

I'm going to close this since it seems like it is a duplicate of #5351 in its request. (We can reopen if someone disagrees with that!)

mrnugget avatar Feb 06 '24 09:02 mrnugget