gurk-rs icon indicating copy to clipboard operation
gurk-rs copied to clipboard

Open links

Open boxdot opened this issue 3 years ago • 3 comments

It is hard to open links in gurk. Some terminals (iterm2, alacritty) support opening links under the cursor, however if the link is wrapped it does not work. A proposal is to select the mesage containing a link with alt+up/down and press enter.

The same technique can be applied to opening attachments.

As a follow-up we could add a mouse selection of messages and a context menu. This would require a mapping between absolute lines and messages in the messages list (involved due to text wrap).

boxdot avatar Jul 06 '21 08:07 boxdot

The gomuks matrix client offers a plaintext view (under ctrl+L) which removes the side bars and redraws the conversation without any control characters, leaving line wrapping to the terminal. In that view urls are clickable even when wrapped (in alacritty at least). I use it a lot for this purpose and find it works quite well.

gertjanvanzwieten avatar Jul 06 '21 14:07 gertjanvanzwieten

It would be cool if u could edit messages in a vim buffer like with ’tg’ (telegram tui). Then u could also use vims built in commands like ’gx’ for open link under curaor in browser etc…

https://github.com/paul-nameless/tg

molleweide avatar Jul 06 '21 16:07 molleweide

confirmed delivered in merged #99 . Works great!

chaseadam avatar Sep 30 '21 14:09 chaseadam