• Re: Solution for "very long urls in urlview"

    From Christopher Anderson@21:1/5 to All on Tue Sep 20 02:04:03 2022
    Thanks!

    I had a different problem, where mutt breaks URLs across lines with +'s, and it stops them being clickable from a terminal session.

    But finding out about urlview was enough to produce a solution.

    For anyone else in a similar situation, I made a shell script ~/bin/url_handler.sh

    ```
    /usr/bin/env bash
    echo -e "\n\n$1\n\n"
    read -r -n 1
    ```

    and in ~/.urlview

    ```
    COMMAND ~/bin/url_handler.sh
    ```

    Now I get the URL wrapped normally, and it waits for a keypress before resuming. Brilliant.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Bell_West@21:1/5 to Christopher Anderson on Tue Sep 20 10:03:41 2022
    On 2022-09-20, Christopher Anderson wrote:
    I had a different problem, where mutt breaks URLs across lines with +'s, and it stops them being clickable from a terminal session.

    set markers=no

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Christopher Anderson on Tue Sep 20 10:23:59 2022
    Christopher Anderson <clesser@gmail.com> wrote:
    Thanks!

    I had a different problem, where mutt breaks URLs across lines with
    +'s, and it stops them being clickable from a terminal session.

    But finding out about urlview was enough to produce a solution.

    Or, alternately, tell mutt not to add those "+" characters by unsetting
    the "markers" config variable:

    3.125. markers

    Type: boolean
    Default: yes

    Controls the display of wrapped lines in the internal pager. If set, a
    "+" marker is displayed at the beginning of wrapped lines.

    Also see the $smart_wrap variable.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to Rich on Tue Sep 20 12:10:18 2022
    Rich <rich@example.invalid> wrote:
    Christopher Anderson <clesser@gmail.com> wrote:
    Thanks!

    I had a different problem, where mutt breaks URLs across lines with
    +'s, and it stops them being clickable from a terminal session.

    But finding out about urlview was enough to produce a solution.

    Or, alternately, tell mutt not to add those "+" characters by unsetting
    the "markers" config variable:

    3.125. markers

    Type: boolean
    Default: yes

    Controls the display of wrapped lines in the internal pager. If set, a
    "+" marker is displayed at the beginning of wrapped lines.

    Also see the $smart_wrap variable.

    But this doesn't fix the inability to click on long URLs, mutt still
    breaks them into separate lines.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Bell_West@21:1/5 to Chris Green on Tue Sep 20 11:48:45 2022
    On 2022-09-20, Chris Green wrote:

    But this doesn't fix the inability to click on long URLs, mutt still
    breaks them into separate lines.

    That depends on your terminal emulator.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Bell_West@21:1/5 to Chris Green on Tue Sep 20 13:14:01 2022
    On 2022-09-20, Chris Green wrote:

    No, it's only in mutt that long lines are split rather than wrapped.
    It's the mutt internal pager that splits the lines, all other programs
    using the same terminal emulator (xfce4-terminal) don't split long
    wrapped lines.

    ...and some terminal emulators treat a split line as a separate thing,
    and some don't care.

    (Personally I don't care because my preferred terminal emulator,
    urxvt, doesn't get to launch a web browser.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Green@21:1/5 to roger+cmm202209@nospam.firedrake.or on Tue Sep 20 13:09:01 2022
    Roger Bell_West <roger+cmm202209@nospam.firedrake.org> wrote:
    On 2022-09-20, Chris Green wrote:

    But this doesn't fix the inability to click on long URLs, mutt still
    breaks them into separate lines.

    That depends on your terminal emulator.

    No, it's only in mutt that long lines are split rather than wrapped.
    It's the mutt internal pager that splits the lines, all other programs
    using the same terminal emulator (xfce4-terminal) don't split long
    wrapped lines.

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)