You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clicking a link should open it in the browser #425
Clicking a link either added directly or with markdown syntax []() should open it in the browser.
Steps to reproduce
Add a link like https://example.org or [https://example.org](https://example.org)
Click it
Expected behavior: The link should open in the browser
Actual behavior: Nothing happens
Link to an example:
Versions
Mark Text: v0.12.25 installed from flathub
OS: Linux
Thanks for this awesome markdown editor. 👍 Probably the most promising I've ever tried. 😉
@juliushaertl Thank you very much for your suggestion, we have also considered this feature. And we are also thinking about how to achieve a better user experience. Our requirement is to jump directly to the document if it is an internal link, or open it through a browser if it is an external link. The initial plan is use ctrl/cmd + leftMouseClick to open them. What's your opinions?
Reacted by stefnotch, Houfu Ang, Jules H., David and Romain Francony
Thanks for the quick answer. Internal links would of course also be great. I think using Ctrl+click makes sense, because the regular click already triggers showing the markdown syntax of a link.
At least as a stop-gap have a "Open in browser" option if you right-click on the link. Currently I guess you have to select the URL and paste it into Safari to open it?
At least as a stop-gap have a "Open in browser" option if you right-click on the link. Currently I guess you have to select the URL and paste it into Safari to open it?
Is it ok to show a tooltip with a open in browser button above the link when you hover you mouse on the link.
I think all of these are okay, even Cmd-Click to have it open like Typora does, which is even faster to use. It's just nice to have at least one way to open links :)
I guess later it might be even nice to try to open links without URI protocol spec inside of Mark Text itself (as you mention), but pass all others to some OS-level URL-link opener so you can make a wiki type knowledge base. For example:
[internal link](another_file.md)
[external file: link](file:another_file.md)
[external web link](https://www.google.com/)
The default behavior on Linux/Windows is Ctrl+LeftClick which would be easy to implement but the main issue is that our current backend doesn't support this. We cannot get mouse events when processing internal data (markdown) but this issue should be solved with our upcoming reimplementation.
Ah, hence the popover suggestion. Perhaps a popover/tooltip like what Google Docs does would be fine? It shows whenever the cursor is inside the link text, so no need to capture mouse events.
@beorn@juliushaertl we finally use CmdOrCtrl + click to open a link or local markdown file. and this feature will be released in the next version.
Hi! Will be nice to have the same option with links inside the page. I mean, if we use some div with id='example' in the .md file... And go there directly with the href="#example" or . I miss this option in Marktext.
Activity
Jocs commentedon Jul 17, 2018
@juliushaertl Thank you very much for your suggestion, we have also considered this feature. And we are also thinking about how to achieve a better user experience. Our requirement is to jump directly to the document if it is an internal link, or open it through a browser if it is an external link. The initial plan is use
ctrl/cmd + leftMouseClickto open them. What's your opinions?juliusknorr commentedon Jul 17, 2018
Thanks for the quick answer. Internal links would of course also be great. I think using Ctrl+click makes sense, because the regular click already triggers showing the markdown syntax of a link.
IssueHuntBot commentedon Nov 6, 2018
@BoostIO funded this issue with $10. See it on IssueHunt
IssueHuntBot commentedon Dec 3, 2018
@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt
beorn commentedon Mar 19, 2019
At least as a stop-gap have a "Open in browser" option if you right-click on the link. Currently I guess you have to select the URL and paste it into Safari to open it?
Jocs commentedon Mar 19, 2019
Is it ok to show a tooltip with a
open in browserbutton above the link when you hover you mouse on the link.beorn commentedon Mar 19, 2019
I think all of these are okay, even Cmd-Click to have it open like Typora does, which is even faster to use. It's just nice to have at least one way to open links :)
I guess later it might be even nice to try to open links without URI protocol spec inside of Mark Text itself (as you mention), but pass all others to some OS-level URL-link opener so you can make a wiki type knowledge base. For example:
fxha commentedon Mar 19, 2019
The default behavior on Linux/Windows is
Ctrl+LeftClickwhich would be easy to implement but the main issue is that our current backend doesn't support this. We cannot get mouse events when processing internal data (markdown) but this issue should be solved with our upcoming reimplementation.beorn commentedon Mar 20, 2019
Ah, hence the popover suggestion. Perhaps a popover/tooltip like what Google Docs does would be fine? It shows whenever the cursor is inside the link text, so no need to capture mouse events.
Jocs commentedon Mar 25, 2019
@beorn @juliushaertl we finally use
CmdOrCtrl + clickto open a link or local markdown file. and this feature will be released in the next version.IssueHuntBot commentedon Mar 28, 2019
@Jocs has rewarded $21.00 to @Jocs. See it on IssueHunt
DesobedienteTecnologico commentedon Jan 13, 2021
Hi! Will be nice to have the same option with links inside the page. I mean, if we use some div with id='example' in the .md file... And go there directly with the href="#example" or . I miss this option in Marktext.