Skip to content

Clicking a link should open it in the browser #425

Closed

Description

@juliusknorr

Description

Clicking a link either added directly or with markdown syntax []() should open it in the browser.

Steps to reproduce

  1. Add a link like https://example.org or [https://example.org](https://example.org)
  2. 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. 😉

Activity

  1. Jocs commented on Jul 17, 2018

    @Jocs
    Member

    @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?

  2. added
    🦄 feature request
    🦁 need discuss
    on Jul 17, 2018
  3. juliusknorr commented on Jul 17, 2018

    @juliusknorr
    Author

    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.

  4. added
    🐳 help wanted
    and removed
    🦁 need discuss
    on Jul 17, 2018
  5. IssueHuntBot commented on Nov 6, 2018

    @IssueHuntBot

    @BoostIO funded this issue with $10. See it on IssueHunt

  6. IssueHuntBot commented on Dec 3, 2018

    @IssueHuntBot

    @issuehuntfest has funded $20.00 to this issue. See it on IssueHunt

  7. beorn commented on Mar 19, 2019

    @beorn

    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?

  8. Jocs commented on Mar 19, 2019

    @Jocs
    Member

    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.

  9. beorn commented on Mar 19, 2019

    @beorn

    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/)
    
  10. fxha commented on Mar 19, 2019

    @fxha
    Contributor

    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.

  11. beorn commented on Mar 20, 2019

    @beorn

    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.

    Screen Shot 2019-03-20 at 12 38 59

  12. self-assigned this
    on Mar 22, 2019
  13. Jocs commented on Mar 25, 2019

    @Jocs
    Member

    @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.

  14. IssueHuntBot commented on Mar 28, 2019

    @IssueHuntBot

    @Jocs has rewarded $21.00 to @Jocs. See it on IssueHunt

    • 💰 Total deposit: $30.00
    • 🎉 Repository reward(20%): $6.00
    • 🔧 Service fee(10%): $3.00
  15. DesobedienteTecnologico commented on Jan 13, 2021

    @DesobedienteTecnologico

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🦄 feature request🐳 help wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions