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
I would like to click on a link to easy follow the link
What problem does this feature solve?
Currently it is hard or not possible to follow a link. Sometimes (I don't understand the logic behind) get a small context menu containing 2 buttons where I could click the second button to follow the link. But this works only sometimes in preview mode, but not in raw edit mode at all.
Sometimes I get this 2 button menu, but I need to hurry up to use it because it hides very quickly (after half second maybe).
There is also a "normal" context menu (I am using Windows), but there is also no way to follow the link.
I was never able to follow a link from inside marktext. Finally I have to copy and past the link into a browser. terrible. This is a really show stopper. And finally I have to use VS Code or any other markdown editor where I can follow links.
Currently it is hard or not possible to follow a link. Sometimes (I don't understand the logic behind) get a small context menu containing 2 buttons where I could click the second button to follow the link. But this works only sometimes in preview mode, but not in raw edit mode at all.
You need to hover over the link to get the overlay or you could also use Ctrl+Click to open the link directly. I think a context menu is not nedded but we should definitely create a tutorial soon or help pages for this small details.
to hoover and to get this small menu is very hard to do as I described. Most time it does not work.
I will try to ctrl-click. But how a user should know about? It did not come in my mind. That's why an entry in the context menu with a hint "ctrl-click" is like an inline documentation. This would be intuitive and no need to search the documentation when someone want to follow the link. of course it should be also in the documentation.
of course you are right. But I use different programs with different shortcuts and instead of thinking about which shortcut is supported in the current program I normally look at the shortcut hints in the menu and context menu and if there is no hint I even don't try. That's why I suggest to include at least the most important actions in the menu - as a reminder: "it is there and it works as in nearly all editors".
It seems that if a URI appears directly in the text, then the application treats it as a link, by changing the cursor and handing a ctrl-click to visit the link target, but does not display a popup item. If a link is formatted with text, using Markdown syntax, then the application also displays a popup of two icons. One icon is for visiting the link target, while the other is for removing the text from the link.
Overall, this behavior is confusing.
The ctrl-click handling is standard, and should be preserved. A popup icon for visiting the link target may be helpful in some cases, as long as it is not intrusive. If the interface is intuitive, then it will be usable without a tutorial.
Editing features such as removing the link text, however, should be presented in the same way as other editing features, for example, as changing letter style. Also, treatment of links should be as similar as reasonable whether they are given in Markdown syntax versus as plain URIs.
Reacted by Germo Görtz, dzmitryv, Yoichi Hirose and Alaestor Weissman
From observation, it appears that factors that currently prevent the popup icons from appearing, in addition to the link being represented as a simple URI (see above), are formatting inside the link text (e.g. [*text*](http://some.where/)), and the editing caret being positioned inside the link at the same time.
Further, links represented with malformed syntax (e.g. [foo]((http://some/where), notice extra open parenthesis) are rendered as links and may cause the popup icons, yet the action of visiting the link target is ignored.
All of these behaviors are confusing. The actual behavior should be simplified into a few different cases, each appropriate for the situation.
I've just tried ctrl-click. It doesn't work for me. I'm running MarkText v0.17.1 on Linux.
I tried the following types of link:
inline link [foo](http://some/where)
bare URI http://some/where
@dzmitryv You need a valid URL like https://github.com or local path like /tmp/abc.pdf, otherwise the source will not be opened for safety reasons.
@fxha sorry, I don't understand what exactly makes the URLs that I used as an example not valid. I think they as valid as https://github.com is. Could you please elaborate?
The last one http://foo.bar.baz works, but I expect an issue with our URL validation.
@brainchild0, yes, those results are different from what I would expect. I would expect all those 9 links to work as they do in Atom for instance or here on GitHub:
@dzmitryv: It was suggested that the difference is likely to be, at least in part, related to some of the items in your example not being valid URIs. Perhaps you might explain in more detail, if your view is that the current behavior is inadequate.
@brainchild0
In my opinion, the current behavior is inadequate because:
the editor's behavior is inconsistent - even among items 4-9 in my examples (I didn't see a comment that would clarify which of the URLs I've shown are not valid... I hope not those), pop-up icon appears only for 2 our of 6 items. I guess, I'm just reiterating comment above.
the current behavior makes MarkText a bit too limited for a group of users who would expect links that work in other software (Chrome, GitHub, Markdown Preview Enhanced package in Atom) to also work in MarkText. I guess, I'm talking about non-working examples 1-3. I mean, from a user perspective, it's expected that something that he is using on daily basis in one or two reasonably popular applications like Chrome and GitHub would also work in other applications.
@dzmitryv: The item http://go/test is not a valid URI, as go is not a valid top-level domain name. Such is the reason why it is treated differently in MarkText than other items in your list. Especially in the case when the item is given inline, without any syntax to indicate a link, it is treated as plain text. Such behavior may be desirable, even if different from other applications.
I believe there is a case for more consistent behavior in MarkText than currently, but it may help for you to be precise about what you expect in each case. It may be desirable not to treat items the same regardless of whether they are invalid URIs, such as in the case of // not being followed by a full domain name.
Those two buttons have been a frustrating UX problem for me. I frequently have lists of links and I constantly end up miss-clicking on the popup button and breaking or opening the link above the one i intended to move the cursor to or select. The popup seems to be aware of my frustration and is a bit temperamental about it, so it decides to vanish rapidly whenever I actually want to use the darn thing.
Currently I've began to work around this by always click past the end of the link when I intend to edit or select it, and ctrl+clicking on the link when I wish to navigate; but it's still a clunky annoyance.
Just some ideas:
right-click context menu, ctrl-click on to navigate, click to edit
hold a key and hover for the pop-up, ctrl-click on to navigate, click to edit
no pop-up, click on to navigate, click past to edit
The first option would be preferable. The third option is the simplest to implement and easiest to maintain because it's very close to the current behavior and it doesn't rely on modifier key detection which can have portability complications; it just gets rid of the annoying behavior but has the downside of requiring user discretion when clicking around the glowing bits of text (which could be viewed as a security issue...)
I'd like to voice my support for links like http://go/test to be clickable same as https://github.com/ is. My company has a lot of internal servers that provide links which MarkText doesn't seem to like for whatever reason, but Obsidian would make clickable, as desired.
Activity
aisbergde commentedon Jun 3, 2020
Here is an idea how typora does, there is a "open Link" in the context menu
fxha commentedon Jun 4, 2020
You need to hover over the link to get the overlay or you could also use
Ctrl+Clickto open the link directly. I think a context menu is not nedded but we should definitely create a tutorial soon or help pages for this small details.aisbergde commentedon Jun 4, 2020
to hoover and to get this small menu is very hard to do as I described. Most time it does not work.
I will try to ctrl-click. But how a user should know about? It did not come in my mind. That's why an entry in the context menu with a hint "ctrl-click" is like an inline documentation. This would be intuitive and no need to search the documentation when someone want to follow the link. of course it should be also in the documentation.
fxha commentedon Jun 7, 2020
It's a default shortcut in almost all editors/office suite applications but I agree that we should add this to the documentation for better UX.
aisbergde commentedon Jun 7, 2020
of course you are right. But I use different programs with different shortcuts and instead of thinking about which shortcut is supported in the current program I normally look at the shortcut hints in the menu and context menu and if there is no hint I even don't try. That's why I suggest to include at least the most important actions in the menu - as a reminder: "it is there and it works as in nearly all editors".
proxseas commentedon Jun 12, 2020
Ctrl-click'ing doesn't work for me. This is really buggy. The only way to open a link is to manually copy & paste it for me right now.
brainchild0 commentedon Jun 22, 2020
It seems that if a URI appears directly in the text, then the application treats it as a link, by changing the cursor and handing a ctrl-click to visit the link target, but does not display a popup item. If a link is formatted with text, using Markdown syntax, then the application also displays a popup of two icons. One icon is for visiting the link target, while the other is for removing the text from the link.
Overall, this behavior is confusing.
The ctrl-click handling is standard, and should be preserved. A popup icon for visiting the link target may be helpful in some cases, as long as it is not intrusive. If the interface is intuitive, then it will be usable without a tutorial.
Editing features such as removing the link text, however, should be presented in the same way as other editing features, for example, as changing letter style. Also, treatment of links should be as similar as reasonable whether they are given in Markdown syntax versus as plain URIs.
brainchild0 commentedon Jun 23, 2020
From observation, it appears that factors that currently prevent the popup icons from appearing, in addition to the link being represented as a simple URI (see above), are formatting inside the link text (e.g.
[*text*](http://some.where/)), and the editing caret being positioned inside the link at the same time.Further, links represented with malformed syntax (e.g.
[foo]((http://some/where), notice extra open parenthesis) are rendered as links and may cause the popup icons, yet the action of visiting the link target is ignored.All of these behaviors are confusing. The actual behavior should be simplified into a few different cases, each appropriate for the situation.
dzmitryv commentedon Mar 17, 2022
I've just tried
ctrl-click. It doesn't work for me. I'm running MarkText v0.17.1 on Linux.I tried the following types of link:
[foo](http://some/where)http://some/where<http://foo.bar.baz>I'm mentioning this because I haven't seen Linux mentioned in the comments above. Maybe that's an issue with running on that OS.
fxha commentedon Mar 19, 2022
@dzmitryv You need a valid URL like
https://github.comor local path like/tmp/abc.pdf, otherwise the source will not be opened for safety reasons.dzmitryv commentedon Mar 21, 2022
@fxha sorry, I don't understand what exactly makes the URLs that I used as an example not valid. I think they as valid as
https://github.comis. Could you please elaborate?fxha commentedon Mar 22, 2022
The last one
http://foo.bar.bazworks, but I expect an issue with our URL validation.brainchild0 commentedon Mar 26, 2022
@dzmitryv: Did you test with the same example addresses as shown in your comments, or ones that are valid representations of resources?
dzmitryv commentedon Mar 28, 2022
@brainchild0 , I've just re-tested the following:
All those URLs are perfectly working in my environment. Including http://go/test. I mean, they all lead to some web-site if I use them in browser, or if I open the same .md file for instance in Atom editor with Markdow Preview Enhanced package and click on those links.
What I got in MarkText:
brainchild0 commentedon Mar 28, 2022
@dzmitryv: Are these detailed results different from what you would expect?
dzmitryv commentedon Mar 29, 2022
@brainchild0, yes, those results are different from what I would expect. I would expect all those 9 links to work as they do in Atom for instance or here on GitHub:
brainchild0 commentedon Mar 29, 2022
@dzmitryv: It was suggested that the difference is likely to be, at least in part, related to some of the items in your example not being valid URIs. Perhaps you might explain in more detail, if your view is that the current behavior is inadequate.
dzmitryv commentedon Mar 30, 2022
@brainchild0
In my opinion, the current behavior is inadequate because:
brainchild0 commentedon Mar 30, 2022
@dzmitryv: The item
http://go/testis not a valid URI, asgois not a valid top-level domain name. Such is the reason why it is treated differently in MarkText than other items in your list. Especially in the case when the item is given inline, without any syntax to indicate a link, it is treated as plain text. Such behavior may be desirable, even if different from other applications.I believe there is a case for more consistent behavior in MarkText than currently, but it may help for you to be precise about what you expect in each case. It may be desirable not to treat items the same regardless of whether they are invalid URIs, such as in the case of
//not being followed by a full domain name.alaestor commentedon Oct 21, 2023
Those two buttons have been a frustrating UX problem for me. I frequently have lists of links and I constantly end up miss-clicking on the popup button and breaking or opening the link above the one i intended to move the cursor to or select. The popup seems to be aware of my frustration and is a bit temperamental about it, so it decides to vanish rapidly whenever I actually want to use the darn thing.
Currently I've began to work around this by always click past the end of the link when I intend to edit or select it, and ctrl+clicking on the link when I wish to navigate; but it's still a clunky annoyance.
Just some ideas:
The first option would be preferable. The third option is the simplest to implement and easiest to maintain because it's very close to the current behavior and it doesn't rely on modifier key detection which can have portability complications; it just gets rid of the annoying behavior but has the downside of requiring user discretion when clicking around the glowing bits of text (which could be viewed as a security issue...)
amterp commentedon Feb 14, 2024
I'd like to voice my support for links like
http://go/testto be clickable same ashttps://github.com/is. My company has a lot of internal servers that provide links which MarkText doesn't seem to like for whatever reason, but Obsidian would make clickable, as desired.fix(muya): make autolinks and bare URLs followable on Cmd/Ctrl-click (#…