<<< Date Index >>>     <<< Thread Index >>>

Re: extract_url.pl: A Better URL Viewer



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, March 27 at 02:22 PM, quoth Steffen Weise:
> Hello Kyle,
>
> On Sat, Mar 22, 2008 at 12:15:59AM -0500, Kyle Wheeler wrote:
>> After a bit of work, I've gotten a perl script that I think rivals 
>> URLView. I call it "extract_url.pl", and it's here: 
>> http://www.memoryhole.net/~kyle/extract_url/
>
> thanks for this script. I decided to go the Curses::UI way to get 
> rid of urlview and for me it works pretty fine.

You're welcome! :)

> Just a minor flaw: when I return to index menu the status bar says 
> "Usage: set variable=yes|no". It only happens if I've called your 
> script. Any ideas about this?

That's a problem that occurred with the original macro that I had on 
the page, because there was a typo in it. I've updated the webpage to 
be more correct. Here's the issue: in the macro definition, you need 
to put a backslash in front of the $'s, so that they're evaluated when 
the macro is evaluated, rather than when the macro is defined. For 
example:

macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
<enter-command> unset pipe_decode<enter>\
<pipe-message>extract_url.pl<enter>\
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"

Note the \$ parts? That fixes that "set variable" problem.

~Kyle
- -- 
If you make people think they're thinking, they'll love you; but if 
you really make them think, they'll hate you.
                                                         -- Don Marquis
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkfrrmIACgkQBkIOoMqOI17tZgCgkAoNAQP4iK38u/gRoN1hC37t
2jwAoJyFHSBKwA4legVRgmRP97RwrPLp
=7GoL
-----END PGP SIGNATURE-----