-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, August 29 at 04:30 PM, quoth Kai Grossjohann: >Actually, what I want is a list of URLs just like that provided by >urlview, but when selecting an http or https URL I should be able to >choose a browser. Or perhaps choose a browser globally before selecting >a URL to view.
One way to do it would be to configure urlview to use a script as a browser. Then in this script, you can do something like: #!/bin/sh choice="" while [ "$choice" != 1 -a "$choice" != 2 ] ; do echo "Options:" echo "1. Firefox" echo "2. w3m" read -p "-> " choice done if [ "$choice" -eq 1 ] ; then firefox "$1" else w3m "$1" fi ... OR you could have your script decide based on an environment variable, like so: #!/bin/sh $BROWSER "$1" Then all you'd need to do is set BROWSER before calling urlview, like so: macro index,pager \cb '<pipe-message>env BROWSER=firefox urlview<enter>' macro index,pager \cn '<pipe-message>env BROWSER=w3m urlview<enter>' ~Kyle - -- Human beings are the only creatures that allow their children to come back home. -- Bill Cosby -----BEGIN PGP SIGNATURE----- Comment: Thank you for using encryption! iD8DBQFG1ZPiBkIOoMqOI14RAuKdAJ9QNA/xw9VNJNcZo7/Me4EJEBYUQQCfYmK2 EtVuHofB+ejws59CZSs8COI= =vHzW -----END PGP SIGNATURE-----