ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.25k stars 70 forks source link

multline links dont select correctly #459

Open 909oce opened 1 week ago

909oce commented 1 week ago

https://i.909.wtf/u/8ax.png

if a link takes up more than a single line, only the first line is selected on mouse hover, and when clicking it to open, itll only open the first line of the URL leading to invalid link

ayn2op commented 1 week ago

Which terminal emulator are you using?

909oce commented 1 week ago

kitty on arch (btw)

ayn2op commented 1 week ago

Discordo wraps the text if the length of the text is greater than the width of the messages text widget, which causes the link to be "broken" into parts to be able to draw it in the viewport of the widget. I am not sure how we can fix that problem, maybe a builtin local URL shortener? Join our Discord server for further discussion.

ayn2op commented 1 week ago

By the way, you can open the attachments by selecting a message and then pressing o (open) key to open the URL in your OS-specific default application for opening links.