On Fri, 19 May 2000, Jeffry Smith <[EMAIL PROTECTED]> wrote:
> On Fri, 19 May 2000, Bob Bell wrote:
>
...
> Thanks. Didn't know that. I just backspace over the old URL. Then again,
> I'm trying to figure out how to do it without using the mouse at all (I admit,
> I'm a keyboard freak - learned to touch type in HS, hate anything that takes
> my fingers off the keyboard).
Here's yet another url-launcher script for fellow keyboard freaks.
This one grabs the X-selection if no URL is supplied on the command line.
I bind it to fvwm keystroke (Alt-F1-W for me) or run from vi say
via :!url ...
Cheers,
Karl Runge
----------cut-here-----------------
#!/bin/sh
Usage="Usage: url <url> supply no args to use the X-selection"
url=$1
if [ "$url" = "" ]; then
url=`echo 'wm withdraw .; set X ""; catch {set X [selection get]}; puts $X;
exit 0' | wish -`
fi
if [ "$url" != "" ]; then
netscape -noraise -remote openURL\($url,new-window\)
else
echo "$Usage"
exit 1
fi
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************