I use a simple bash script as my "url-viewer" in .pinerc:

 >> url-viewers=/home/user/bin/view-link

    #!/bin/sh

    echo $1 | less -minXes -

It displays the URL in full without any linebreaks or extra spaces. I can
then command-click on it in my iTerm2 window, and it opens it in a new tab in my
default browser.

I'm using MacOS in this case, also accessing my email via remote text
terminal only.

I too have had to do this since Alpine adds extra spaces to URLs longer
than my full screen width, which is very annoying, but this solves the
issue well enough.

Beckman

On Tue, 20 Jan 2026, sasa via Alpine-info wrote:

Is there any simple way to get links in html document simply to display so I 
can cut and paste them into a browser?

The best I can do is to define a fake URL viewer so that it asks "View selected URL 
"...

Ideally it wouldn't waste screen width with "View selected URL "... and it 
would use the full width of the screen so I can grab those insanely long links that seem 
to be the bane of my email.

In a perfect world it would also automatically offer a shortened version to aid 
copy-paste.

I absolutely do not want to run a browser from alpine (which is running on a 
remote text terminal only server).

---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
[email protected]                                https://www.angryox.com/
---------------------------------------------------------------------------
_______________________________________________
Alpine-info mailing list
[email protected]
http://mailman23.u.washington.edu/mailman/listinfo/alpine-info
_______________________________________________
Alpine-info mailing list
[email protected]
http://mailman23.u.washington.edu/mailman/listinfo/alpine-info

Reply via email to