Skip to content
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

Add support for explicit hyperlink marking in terminals that support it. #1252

Open
offbyone opened this issue Sep 23, 2018 · 8 comments
Open
Labels
feature New feature request

Comments

@offbyone
Copy link

Feature description

When hyperlinks are posted to terminals it's super useful to be able to click on them. Most modern terminals provide URL marking features to make that possible, but they rely on text continuity, and when URLs wrap in sub-panes of the terminal window that gets hard, if not straight up impossible.

See, for example, this issue I opened to iTerm2: https://gitlab.com/gnachman/iterm2/issues/7066

They point out that there's a nascent standard implemented by them and by Gnome terminal, OSC 8 explicit hyperlink support, that allows for HTML-like anchors to mark links.

Please implement that in weechat so that I can click on my URLs again 😄

@flashcode flashcode added the feature New feature request label Sep 23, 2018
@jpmenil
Copy link

jpmenil commented Sep 26, 2018

Still not clickable with alt+l ?
cf https://weechat.org/files/doc/devel/weechat_faq.en.html#urls

@offbyone
Copy link
Author

Yeah, that works... I'm not sure it removes the value of my feature request, though.

@sataris
Copy link

sataris commented Jun 19, 2020

This would be wonderful to see implemented, alt+l is an annoying workaround.

@jpmenil
Copy link

jpmenil commented Jun 19, 2020

another workaround, is tmux + tmux-url-select.pl or another tmux url plugin

@lucy
Copy link

lucy commented Oct 15, 2021

OSC 8 Hyperlinks are widely supported in terminals now. Would love to see this in weechat.

@flashcode
Copy link
Member

Hi,

As mentioned in the iterm2 issue (on GitLab), the problem is that ncurses doesn't support this OSC8 ANSI code.

I made a POC, visible in this commit: 2d38731 (very basic support, making any word starting with "http" an URL).
But this doesn't work at all, I'm not able to send raw codes to ncurses, and using fprintf doesn't help either.

I think the only possible solutions for support of these hyperlinks (which I agree would be nice) are:

  • wait for OSC8 hyperlinks support in ncurses
  • contribute to ncurses to add such support
  • remove completely ncurses fom WeeChat and either switch to another lib supporting OSC8 hyperlinks, or no lib at all (huge work in any case).

@dustymabe
Copy link

is there an open issue somewhere or a place where we can track OSC8 hyperlink support in ncurses?

@dustymabe
Copy link

I started a thread on the bug-ncurses mailing list: https://lists.gnu.org/archive/html/bug-ncurses/2023-08/msg00015.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

6 participants