Article View: news.software.nn
Article #9846Re: urliew with nn?
From: Tim Skirvin
Date: Tue, 21 Aug 2001 14:57
Date: Tue, 21 Aug 2001 14:57
39 lines
2018 bytes
2018 bytes
aalinovi@panix.com (Arthur) writes:
>One question I have is whether it is possible to have nn invoke urlview
>on posts that have url's in them as one can do with slrn?
In your .nn/init:
map show ^B (
:!! cat /dev/null > /tmp/junk$(USER)
save-full "//tmp/junk$(USER)
:! echo; urlview < /tmp/junk$(USER); rm /tmp/junk$(USER)
:redraw
)
Oh, and if you want it to catch multi-line URLs, have it invoke
this instead:
#!/usr/local/bin/perl
# Updated urlview - eliminates newlines and their associated whitespace
# Written by Tim Skirvin <tskirvin@killfile.org>, Fri Aug 10 15:39:26 CDT
# 2001
open(URLVIEW, "| /usr/local/bin/urlview");
while (<STDIN>) {
print URLVIEW $_;
$buf .= $_;
}
$buf =~ s/\s*\n\s*//g;
print URLVIEW $buf;
close(URLVIEW);
- Tim Skirvin (tskirvin@killfile.org)
--
<URL:http://www.killfile.org/~tskirvin/> Skirv's Homepage <FISH><
<URL:http://www.killfile.org/dungeon/> The Killfile Dungeon <*>
Technical Details
Message-ID:
<tskirvin.998405766@ks.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!vixen.cso.uiuc.edu!ks.uiuc.edu!tskirvinReferences:
<9lthfe$btf$1@panix1.panix.com>Show Full Headers
Complete Article Headers
Message-ID: <tskirvin.998405766@ks.uiuc.edu> Subject: Re: urliew with nn? Date: Tue, 21 Aug 2001 09:57:12 -0500 From: tskirvin@killfile.org (Tim Skirvin) References: <9lthfe$btf$1@panix1.panix.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!vixen.cso.uiuc.edu!ks.uiuc.edu!tskirvin Newsgroups: news.software.nn Reply-To: tskirvin@killfile.org X-Note: If you got this through mail, it was probably posted and mailed. X-Newsreader: NN version 7.alpha0 Lines: 38 NNTP-Posting-Host: 130.126.120.251 X-Complaints-To: abuse@uiuc.edu X-Trace: vixen.cso.uiuc.edu 998405731 130.126.120.251 (Tue, 21 Aug 2001 09:55:31 CDT) NNTP-Posting-Date: Tue, 21 Aug 2001 09:55:31 CDT Organization: University of Illinois at Urbana-Champaign