On 2022-05-13 20:25:28 +0200, Magnus Groß wrote: > 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.
Well, it would be necessary when one uses markers. Otherwise, a "+" is inserted in URLs (or Mutt should have a feature to disable markers in some regexp's). > [1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)