gurk-rs
gurk-rs copied to clipboard
Open links
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).
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.
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
confirmed delivered in merged #99 . Works great!