Page MenuHomePhabricator

Multi-line URL strings in the terminal don't get selected entirely
Open, Incoming QueuePublic

Description

I use neomutt (e-mail client). Very long URLs, that span across multiple lines, viewed in e-mail messages via mutt, do not get selected entirely (when clicking on them with the mouse). Instead, only the first line is selected as the URL and "opened" at the default browser's tab.

Attached an example screenshot of a long URL:


And then what is attempted to "open" in the browser's tab:

Can this be "fixed"?

billiob added a subscriber: egmont.Oct 16 2018, 5:38 AM

I'm also using neomutt, with the sidebar. And the annoyance you're reporting is also getting on my nerves.
In your case, I think neomutt is the one doing the wrapping: writing explicitly across multiple lines.
If you write down a large url in terminology, spanning multiple lines due to "natural" wrapping, it shall work correctly.

This weekend I made that: https://fau.re/blog/20181014_terminology_hyperlinks.html . It could be interesting to have neomutt support it.

@egmont Neomutt could be a good case for an application using it.

NikosAlexandris added a comment.EditedOct 16 2018, 6:19 AM

I'm also using neomutt, with the sidebar. And the annoyance you're reporting is also getting on my nerves.
In your case, I think neomutt is the one doing the wrapping: writing explicitly across multiple lines.
If you write down a large url in terminology, spanning multiple lines due to "natural" wrapping, it shall work correctly.

This weekend I made that: https://fau.re/blog/20181014_terminology_hyperlinks.html . It could be interesting to have neomutt support it.

@egmont Neomutt could be a good case for an application using it.

Nice blog post. I use the sidebar too. The sidebar can be hidden, with whatever shortcut is assigned to (un)hide it. Here I use the key "b". I guess you are right, it's not Terminology's fault. I think it's vim's fault (not even neomutt's). To investigate further.