🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by leo%aai Sun, 29 Apr 1990 03:33
searching in nn?
#313
Author: leo%aai
Date: Sun, 29 Apr 1990 03:33
68 lines
4102 bytes
I posted the article below on April 2 and saw NO replies or comments!  Maybe
it didn't get posted externally!  Anyway, what do you devoted nn users think
about nn's searching capabilities?  Described below are the features I miss
when using nn instead of rn.
---------------------------------------------------------------------------
nn really shines at user selection of articles thereby allowing the user to
quickly skim through large volumes of news only pulling out the things of
interest.  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:

Note that these apply to article selection level.

     /pattern	[nn has the = command, but no recall]
             Scan forward for article containing pattern  in  the
             subject.   See  the  section on Regular Expressions.
             Together  with  the  escape  substitution   facility
             described later, it becomes easy to search for vari-
             ous attributes of the current article, such as  sub-
             ject,  article  ID,  author name, etc.  The previous
             pattern can be recalled with "<esc>/".   If  pattern
             is omitted, the previous pattern is assumed.

     /pattern/h	[nn only searchs subject line, can't search on id, etc.]
             Scan forward for article containing pattern  in  the
             header.

     /pattern/a	[this is what I miss most in nn]
             Scan forward for article containing pattern anywhere
             in article.

     /pattern/r	[this is very handy to find things without reentering group]
             Scan read articles also.

     /pattern/c	[having this can save multiple searchs due to capitalization]
             Make search case sensitive.   Ordinarily  upper  and
             lower case are considered the same.

     /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]
             Apply the commands listed to articles  matching  the
             search command (possibly with h, a, or r modifiers).
             Applicable commands include 'm'  (mark  as  unread),
             'M' (delayed mark as unread), 'j' (mark as read), "s
             dest" (save to  a  destination),  "!command"  (shell
             escape),  "="  (print the subject) and "C" (cancel).
             If the first command is 'm' or 'M',  modifier  r  is
             assumed.   A K may be included in the modifiers (not
             the commands) to cause the entire command  (sans  K)
             to be saved to the local KILL file, where it will be
             applied to every article that shows up in the  news-
             group.

             For example, to save all articles in a  given  news-
             group  to  the  line printer and mark them read, use
             "/^/|lpr:j".  If you  say  "/^/K|lpr:j",  this  will
             happen every time you enter the newsgroup.

     ?pattern
             Scan backward for article containing pattern in  the
             subject.   May be modified as the forward search is:
             ?pattern?modifiers[:commands].  It  is  likely  that
             you will want an r modifier when scanning backward.

-- 
Leo	leo%aai@uunet.uu.net  ...!uunet!aai!leo
Re: searching in nn?
#417
Author: Kim F. Storm
Date: Fri, 18 May 1990 17:43
79 lines
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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads