From alpine-info at u.washington.edu Tue Jan 20 13:57:14 2026 From: alpine-info at u.washington.edu (sasa via Alpine-info) Date: Tue Jan 20 13:57:20 2026 Subject: [Alpine-info] URLs Message-ID: <2622059.Sgy9Pd6rRy@lunesta> 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). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 499 bytes Desc: This is a digitally signed message part. URL: From alpine-info at u.washington.edu Tue Jan 20 14:19:52 2026 From: alpine-info at u.washington.edu (Peter Beckman via Alpine-info) Date: Tue Jan 20 14:19:54 2026 Subject: [Alpine-info] URLs In-Reply-To: <2622059.Sgy9Pd6rRy@lunesta> References: <2622059.Sgy9Pd6rRy@lunesta> Message-ID: <033389c0-6307-bd53-6c05-e3be10fdcc7a@angryox.com> 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 beckman@angryox.com https://www.angryox.com/ --------------------------------------------------------------------------- -------------- next part -------------- _______________________________________________ Alpine-info mailing list Alpine-info@u.washington.edu http://mailman23.u.washington.edu/mailman/listinfo/alpine-info From alpine-info at u.washington.edu Tue Jan 20 14:25:01 2026 From: alpine-info at u.washington.edu (Chime Hart via Alpine-info) Date: Tue Jan 20 14:25:06 2026 Subject: [Alpine-info] URLs In-Reply-To: <2622059.Sgy9Pd6rRy@lunesta> References: <2622059.Sgy9Pd6rRy@lunesta> Message-ID: Well Sasa, why not use a Debian package urlview? I find it really helpful when trying to grab urls of streams out of javascript. Chime From alpine-info at u.washington.edu Wed Jan 21 01:30:06 2026 From: alpine-info at u.washington.edu (Andrew C Aitchison via Alpine-info) Date: Wed Jan 21 01:30:16 2026 Subject: [Alpine-info] URLs In-Reply-To: <2622059.Sgy9Pd6rRy@lunesta> References: <2622059.Sgy9Pd6rRy@lunesta> Message-ID: <20015b30-8dc5-055a-7707-847c51303fb1@aitchison.me.uk> 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). What is running at the local end ? I set url-viewers to (a script which runs) tty-copy (not part of Ubuntu, but available at https://github.com/jirutka/tty-copy). On terminals which support OSC 52*, this puts the URL into the copy-paste buffer, so that you go to the local browser URL bar and paste. *Some terminal programs support OSC 52, some do not, since allowing a remote program to set your paste text has security implications, as a rogue program could leave you one click from running a command of their choice in a shell window. -- Andrew C. Aitchison Kendal, UK andrew@aitchison.me.uk From alpine-info at u.washington.edu Wed Jan 21 11:39:21 2026 From: alpine-info at u.washington.edu (Chris Candreva via Alpine-info) Date: Wed Jan 21 11:39:24 2026 Subject: [Alpine-info] URLs In-Reply-To: <2622059.Sgy9Pd6rRy@lunesta> References: <2622059.Sgy9Pd6rRy@lunesta> Message-ID: 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). I use the following bash script to display the url to copy/paste or click to open Firefox, or optionally launch links / lynx. ---------------------------- #!/bin/bash # # Script to display links from pine, # Either to click or in a text viewer # clear echo -e "\n\n\nYour URL is below:\n\n\t$@" echo -e "\n0) Quit" echo "1) View in Links." echo "2) View in Lynx" echo -e "\n(Anything else quits also)\n" read -p "Enter your selection then . " K if [ "$K" = '1' ]; then links "$@" elif [ "$K" = '2' ]; then lynx "$@" fi clear exit 0 -- --- ======================================================================== Chris Candreva -- chris@westnet.com -- http://www.westnet.com/~chris