urlscan icon indicating copy to clipboard operation
urlscan copied to clipboard

No OSC 8 hyperlink support

Open basak opened this issue 5 months ago • 3 comments

Thank you for urlscan!

It'd be great if it could support OSC 8 please. This would make for a lovely UX where a shortened URL display (as is the default) could nevertheless be opened directly by a supported terminal emulator directly, for example in the case where urlscan is being run over ssh so the usual xdg-open etc. would operate in the wrong place.

basak avatar Sep 17 '25 19:09 basak

#140 is related but different, since it relates to the copy to clipboard function as opposed to OSC 8 which enables a direct hyperlink.

basak avatar Sep 17 '25 19:09 basak

I wondered what it might take to implement this and found that it is likely blocked on https://github.com/urwid/urwid/issues/391

basak avatar Sep 17 '25 19:09 basak

Ah, yes that would be nice! I wonder if a popup containing the whole URL (not split or shortened) could be a temporary workaround. Complete URLs are definitely recognized and accessible on the urlscan page via the OSC8 url handler in foot.

firecat53 avatar Sep 19 '25 20:09 firecat53