Add clickable hyperlinks that open in a user's browser
URLs within chat windows could have an underline text effect applied when hovered over with the mouse cursor and when clicked these could be opened by an application chosen by the operating system.
The open crate could be used to accomplish this.
Note from channel discussion about making irc:// and ircs:// URLs clickable, whether by default to connect/join within Halloy using the scheme from https://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt or to honor and pass them to whatever application is registered on the OS to handle them. Thoughts?
@Mardeg can you please open a separate issue? Thanks!
I've marked this issue as upstream. We are 100% looking to support this but we're blocked by iced not supporting rich text yet which makes this hard to achieve in an optimal manner (without breaking text wrapping).
The good news is rich text shouldn't be too far out, so this is on the horizon.
Just bumping this to ask we're still waiting on iced to implement rich text or if it's something we could add in the near future?
Unfortunately still blocked, maybe @hecrj has an update on when rich text is coming to iced?
@casperstorm @ColinMcKechney Rich Text is in the roadmap and planned for the next release.
I can't give a specific time frame, but it's coming soon™.
Would it be too much of an antipattern to temporarily detect the first URL in a message and open it when you click on a message?