vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Is it possible to view link URLs on hover? #855

Open SurealCereal opened 4 years ago

SurealCereal commented 4 years ago

When previewing markdown, it would be useful to see where a link will go to when hovering over it. Is this possible at present?

vsch commented 4 years ago

@SurealCereal, currently link hover displays link title if it is provided [link text](link url "link title"), I will check if I can add JS code to display the link URL on link hover in the status bar.

SurealCereal commented 4 years ago

@vsch Thanks for the tip; I'll use those link titles in the meantime.

vsch commented 4 years ago

@SurealCereal, actually I can add an option to use the URL as the title if no actual title is provided. This way links will have a default title equal to the URL.

I will let you know when an EAP release with the fix is available.

vsch commented 4 years ago

@SurealCereal, EAP update with a fix for the issue is available.

Installing EAP Plugin Version

Please note the change that EAP channel is for JetBrains licensed plugin and Legacy EAP is for legacy licensing by vladsch.com

Enable HTML generation option Use URL as default title in Languages & Frameworks | Markdown | HTML Generation:

image

SurealCereal commented 4 years ago

@vsch I tried the EAP update and it works well. Much appreciated! Its definitely easy to see where a link goes now. It would be great if the URL could be shown immediately when the cursor enters a link in the status bar of the preview (if there is such a thing) like Firefox and Chrome do, but that's definitely an optional extra. In the meantime, this tooltip solution is a huge improvement.