Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP support for reference links #468

Open
tbung opened this issue Nov 21, 2024 · 2 comments
Open

LSP support for reference links #468

tbung opened this issue Nov 21, 2024 · 2 comments

Comments

@tbung
Copy link

tbung commented Nov 21, 2024

Currently, there is no hover or go to definition action for reference links in the form of

This is some text, see [ref] for more info.

[ref]: https://example.com

I write a lot of notes on research papers and link the pdf files at the appropriate places, so especially go to definition would be great. I'd be happy to take a stab at it and submit a pull request if you agree this would be a good addition.

@tjex
Copy link
Member

tjex commented Nov 21, 2024

So just to check I'm understanding correctly, in the above example, go to definition would jump the cursor the the buttom line [ref]: ... and hover would bring up a pop-up with the link?

I would be down to merge that!

@tbung
Copy link
Author

tbung commented Nov 21, 2024

Yes, except maybe hover also shows link title (as it is called in the markdown spec) if it exists, so

[ref]: https://example.com "Doe, Jane et al., Example Website, 2019"

would show both parts of the right side.

Alright, cool, I'll go and try to work something out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants