Article View: news.software.nn
Article #417Re: searching in nn?
From: Kim F. Storm
Date: Fri, 18 May 1990 17:43
Date: Fri, 18 May 1990 17:43
79 lines
3431 bytes
3431 bytes
leo%aai@uunet.uu.net writes:
>I posted the article below on April 2 and saw NO replies or comments!
I saw your article, but was busy getting 6.4 ready for distribution.
>rn shines at selecting and manipulating articles based on user
>specified criteria. Since Kim asked for suggestions for future enhancements,
>here's what I'd like to see:
> /pattern [nn has the = command, but no recall]
= (return) will repeat last search. Or does recall mean something else?
> /pattern/h [nn only searchs subject line, can't search on id, etc.]
> /pattern/a [this is what I miss most in nn]
Does
"G [group] H regexp"
and
"G [group] A regexp"
sound interesting ?
Or do you also want to have it as an option in the "=" command,
and maybe even in the "auto-kill/select" feature?
Doing this only with the G command would be fairly easy, likewise for
the "=" command (but is it really needed), but I would really hate to
do it for the auto-kill/select, since this would make nn as slow as rn
(when it does its kill processing).
> /pattern/r [this is very handy to find things without reentering group]
> Scan read articles also.
This would be the default with the "G" command, while "=" would scan only the
articles on the current menu.
> /pattern/c [having this can save multiple searchs due to capitalization]
> Make search case sensitive. Ordinarily upper and
> lower case are considered the same.
In nn you would control this through the case-fold-search variable.
> /pattern/modifiers:command{:command}
> [with this you can do things like select all articles containing a
> certain string and write them to a file whether or not they have
> been previously read or seen]
This would be difficult to achieve in nn, but if you do things right,
I would say that you can accomplish most of this with the current
set of commands, for example, "save selected articles" or "junk unread
articles".
I can see that a way to temporarily use the notion of selected articles
for a specific purpose would be useful, for example, if you want to
save articles e-h (selected through a regular expression) but already have
a,b,p, and q selected, then something like the following should be possible:
define 4
store-selections
prompt "Save on regexp"
= input
save-full input "+"
restore-selections
end
If you would find this is useful, it would not be all that hard to do it!
> ?pattern
> Scan backward for article containing pattern in the
> subject.
Since nn doesn't operate with "forward or backward" directions on the
menu, I think this isn't all important - do you?
--
Kim F. Storm <storm@texas.dk> No news is good news,
Texas Instruments A/S, Denmark but nn is better!
Technical Details
Message-ID:
<547@texas.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!stormReferences:
<1990Apr29.033305.24254%aai@uunet.uu.net>Show Full Headers
Complete Article Headers
Message-ID: <547@texas.dk> Subject: Re: searching in nn? Date: Fri, 18 May 1990 17:43:47 +0000 From: storm@texas.dk (Kim F. Storm) References: <1990Apr29.033305.24254%aai@uunet.uu.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm Newsgroups: news.software.nn Organization: Texas Instruments, Denmark Lines: 79 Posted: Fri May 18 18:43:47 1990