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
Regex Hyperlink Matching and simplified opening #823
Comments
Unclear; in what sense would you match against the regex, i.e. where would the regex come from? |
I'm explaining myself poorly, sorry. Currently in mintty, when there is a hyperlink on the screen I Ctrl+click it and it opens a browser. Somewhere in mintty, there must be some code that registers What I want to do is have some code that registers On a similar note, urxvt has matchers and terminator has plugins that will do this |
Link detection is hard-coded and it always opens the plain link, not any substituted derivation. |
On the other hand, mintty has user-defined commands already. Check that out, I'd imagine you can achieve with it what you want. |
I've added this example to the manual page, as a pattern:
Then select your text, Ctrl+right-click, and choose menu item "google". |
I'm trying to cut down on the number of steps to open up the web browser. For my case I know that Thanks for your time |
We're talking about two things here:
|
As an alternative suggestion, mintty will support the OSC 8 protocol to set hyperlink attributes and explicitly mark text parts to open certain links. See Hyperlinks in terminal emulators for a discussion. |
Released 2.9.7 with hyperlink support. |
Assuming that the explicit hyperlink feature can also achieve the desired behaviour (although it requires a cooperating application), I'm closing the issue for now. |
I would like to be able to setup a regex with capture groups that can be turned into a hyperlink. An example is if the following text is on the terminal
I'd like to match it against
T(\d+)
and when I Ctrl+Click, it should open up the URLhttp://my.task.tracker.com/t=$1
.The issues #132 and #173 seem to be a good base to work off and they mention this pull request.
I think
termmouse.c
is the place to start looking, but can't figure it out. Could I get a hint?The text was updated successfully, but these errors were encountered: