Am Fri, May 13, 2022 at 07:49:38PM +0200 schrieb Vincent Lefevre:
A better tool could be to convert the text to HTML with just
URL recognition to generate <a href="URL">URL</a> links (and
perhaps a bit more), and run a web browser on it.

Mutt could also use OSC 8 [1] to embed the link directly. This would work regardless of whether mutt inserts hardcoded linebreaks or not.

For example the following works despite the linebreak inbetween (tested in wezterm):

#!/usr/bin/env bash
printf '\e]8;;http://example.com\e\\http://example.\ncom\e]8;;\e\\\n'


I think however that this would only be an unnecessary workaround. Theoretically mutt should be able to know where the terminal breaks lines and can compute the line count without inserting hard line breaks.


[1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

Reply via email to