🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Melvyn J Brauns Wed, 10 Mar 1993 00:59
Searching WITHIN an article
#3522
Author: Melvyn J Brauns
Date: Wed, 10 Mar 1993 00:59
24 lines
2151 bytes
  I asked this some time ago and got no answer, so it's time to try
again.  We use 'xrn' (an X UI for rn) which has the label "version 6.17
(Motif)" on the window's header line.  I'm on a SPARC running SunOS/4.1.1.
My question is this:  is there a way to search for a string WITHIN an
article?  The ready-made buttons allow me to search for article TITLES
with a specified string, but I'm not aware of how to do it once I select
an article and I want to jump/search for a particular string.  What comes
to mind are the FAQ files which have either numbered or titled subsections
within them and are frequently quite long.  Using the scroll bar is the 
only obvious way to find what I want.  Someone DID reply that they use 'rn'
instead of 'xrn' and use a 'gpattern' command (or more precisely, it's
'g<pattern>'), but the responder wasn't aware of an xrn equivalent.
Anybody out there got any swift ideas on how to do what I wanna do?
..Pls email any response (post also if you wish, since it may be of
general interest).
-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
|	   Loral Corporation's Software Productivity Lab	  |
| Mel Brauns		    *					  |
| Loral SPL, MS:C-01	    *	Phone: (408)473-4695		  |
| POB 49041, Bldg.220	    *	F A X: (408)473-7131		  |
| San Jose, CA 95161-9041   *	Internet: mjb@spl1.spl.loral.com  |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
Re: Searching WITHIN an article [in xrn]
#3532
Author: Greg Earle
Date: Thu, 11 Mar 1993 10:41
173 lines
8484 bytes
In article <1993Mar10.005901.18904@wdl.loral.com> mjb@spl1.spl.loral.com writes:
>  I asked this some time ago and got no answer, so it's time to try
>again.  We use 'xrn' (an X UI for rn) which has the label "version 6.17
>(Motif)" on the window's header line.  I'm on a SPARC running SunOS/4.1.1.
>My question is this:  is there a way to search for a string WITHIN an article?

Easy, just put a binding for artSubSearch() into your XRn.artBindings: entries
in your .Xdefaults.  XRn (and XRnMotif) has a zillion resources and bindings
you can set; here's a snippet of my .Xdefaults that contains all my old XRn
and XRnMotif bindings (I deleted the ones that were specific to me or my site).

(Note that I said "my OLD XRn ... bindings" because I long since ditched XRn
 for trn/strn's threading capabilities ... )

Warning; the following is so large simply because it's a leftover from a
self-created challenge to myself to see how many fonts, colors, bindings, etc.
I could use for a single program (-:

--------------------------  >8  Snip snip  8<  -------------------------------
XRn.Gripe.geometry:     +50+50
XRn.geometry:   760x770+0+0
XRn.artBindings:        \
  <Key>0x20:    doTheRightThing()       \n\
  :<Key>n:      artNextUnread() \n\
  :<Key>N:      artNext()       \n\
  <Key>0xe:     artSubNext()    \n\
  <Key>P:       artPrev()       \n\
  ^<Key>P:      artSubPrev()    \n\
  :<Key>-:      artLast()       \n\
  :<Key>/:      artSubSearch()  \n\
  <Key>f:       artFollowup()   \n\
  <Key>r:       artReply()      \n\
  <Key>s:       artSave()       \n\
  <Key>w:       artSave()       \n\
  <Key>|:       artSave()       \n\
  <Key>%:       artSave("| uudecode")   \n\
  :<Key>C:      artCancel()     \n\
  :<Key>v:      artHeader()     \n\
  ^<Key>X:      artRot13()      \n\
  :<Key>X:      artRot13()      \n\
  :<Key>c:      artCatchUp()    \n\
  :<Key>j:      artMarkRead()   \n\
  <Key>m:       artMarkUnread() \n\
  :<Key>k:      artKillSession()        \n\
  :<Key>K:      artKillLocal()  \n\
  :<Key>u:      artUnsub()      \n\
  <Key>q:       artQuit()\n
XRn.artButtonList:      artQuit,artNextUnread,artNext,artPrev,artCatchUp,artMarkUnread,artMarkRead,artPost,artNextGroup,artUnsub,artKillLocal,artExit,artGripe
XRn.confirmBox: on
XRn.deadLetters:        ~/dead.letter
XRn.editorCommand:      xterm -e vi %s
XRn.leaveHeaders:       Subject,From,Keywords,Organization,Really,X-Refs
XRn.mailer:     /usr/lib/sendmail -oi -t
XRn.maxLines:   7
XRn.minLines:   3
XRn.newsrcFile: ~/.newsrc
XRn.ngBindings: \
  <Key>0x20:    doTheRightThing()       \n\
  <Key>y:       doTheRightThing()       \n\
  :<Key>u:      ngUnsub()       \n\
  :<Key>c:      ngCatchUp()     \n\
  <Key>n:       ngNext()        \n\
  <Key>p:       ngPrev()        \n\
  <Key>-:       ngPrevGroup()   \n\
  :<Key>g:      ngGoto()        \n\
  :<Key>L:      ngAllGroups()   \n\
  <Key>q:       ngQuit()\n
XRn.ngButtonList:       ngQuit,ngRead,ngNext,ngCatchUp,ngGoto,ngRescan,ngUnsub,ngPost,ngGripe,ngAllGroups
XRn.printCommand:       enscript -G -f Courier-Bold9 -F Courier-Bold14 -k -h
XRn.saveMode:   mailbox,headers
XRn.savePostings:       ~/.article
XRn.signatureFile:      ~/.signature
XRn.tmpDir:     /tmp
XRn.topLines:   10
XRn*Box.addQuit.background:     red
XRn*Box.addQuit.foreground:     Black
XRn*Box.artMarkUnread.font:     9x15
XRn*Box.artNextUnread.font:     9x15
XRn*Box.artQuit.background:     red
XRn*Box.artQuit.foreground:     Black
XRn*Box.artSave.background:     LimeGreen
XRn*Box.artSave.foreground:     NavyBlue
XRn*Box.ngExit.background:      orange
XRn*Box.ngExit.foreground:      yellow
XRn*Box.ngQuit.background:      red
XRn*Box.ngQuit.foreground:      Black
XRn*Box.ngRescan.background:    violet
XRn*Box.ngRescan.foreground:    cyan
XRn*Box.ngSubscribe.background: green
XRn*Box.ngSubscribe.foreground: blue
XRn*Box.ngUnsub.background:     blue
XRn*Box.ngUnsub.foreground:     green
XRn*font:       8x13bold
XRn*Command.font:       -linotype-new century schoolbook-medium-r-normal--12-120-72-72-p-67-iso8859-1
XRn*Command.background: coral
XRn*Command.foreground: White
XRn*Label.font: -adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1
XRn*Label.background:   cyan
XRn*Label.foreground:   blue
XRn*ShapeStyle: Oval
XRn*Text*Background:    yellow
XRn*Text*Foreground:    DarkSlateGray
XRn*Text*background:    yellow
XRn*Text*foreground:    DarkSlateGray
XRn*border:     LightGray
XRn*dialog*font:        -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
XRn*dialog*Command.background:  yellow
XRn*dialog*Command.foreground:  Black
XRn*dialog*Label.foreground:    NavyBlue
XRn*dialog*Text.background:     Wheat
XRn*dialog*Text.foreground:     SteelBlue
XRn*dialog*borderWidth: 2
XRn*dialog*background:  LimeGreen
XRn*dialog*foreground:  CornflowerBlue
XRn*background: plum
XRn*foreground: red
XRnMotif.Geometry:      760x770+0+0
XRnMotif.Gripe.geometry:        +50+50
XRnMotif.editorCommand: xterm -e vi %s
XRnMotif.leaveHeaders:  Subject,From,Keywords,Organization,Really,X-Refs
XRnMotif.newsrcFile:    ~/.newsrc
XRnMotif.printCommand:  enscript -G -f Courier-Bold9 -F Courier-Bold14 -k -h
XRnMotif*XmLabel.fontList:      8x13bold
XRnMotif*XmLabel.background:    cyan
XRnMotif*XmLabel.foreground:    blue
XRnMotif*fontList:      8x13bold
XRnMotif*XmPushButton.fontList: 9x15bold
XRnMotif*XmPushButton.background:       coral
XRnMotif*XmPushButton.foreground:       White
XRnMotif*Xmdialog*fontList:     -adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1
XRnMotif*Xmdialog*XmPushButton.background:      yellow
XRnMotif*Xmdialog*XmPushButton.foreground:      Black
XRnMotif*Xmdialog*Label.foreground:     NavyBlue
XRnMotif*Xmdialog*Text.background:      Wheat
XRnMotif*Xmdialog*Text.foreground:      SteelBlue
XRnMotif*Xmdialog*borderWidth:  2
XRnMotif*Xmdialog*background:   LimeGreen
XRnMotif*Xmdialog*foreground:   CornflowerBlue
XRnMotif*articleText*background:        yellow
XRnMotif*articleText*foreground:        DarkSlateGray
XRnMotif*vpane*index*listMarginHeight:  10
XRnMotif*vpane*index*listMarginWidth:   10
XRnMotif*vpane*index*background:        yellow
XRnMotif*vpane*index*foreground:        DarkSlateGray
XRnMotif*vpane*indexbuttons*scrollBarDisplayPolicy:     XmVARIABLE
XRnMotif*ShapeStyle:    Oval
XRnMotif*border:        LightGray
XRnMotif*XmRowColumn.addQuit.background:        red
XRnMotif*XmRowColumn.addQuit.foreground:        Black
XRnMotif*XmRowColumn.artMarkUnread.fontList:    9x15
XRnMotif*XmRowColumn.artNextUnread.fontList:    9x15
XRnMotif*XmRowColumn.artQuit.background:        red
XRnMotif*XmRowColumn.artQuit.foreground:        Black
XRnMotif*XmRowColumn.artSave.background:        LimeGreen
XRnMotif*XmRowColumn.artSave.foreground:        NavyBlue
XRnMotif*XmRowColumn.ngExit.background: orange
XRnMotif*XmRowColumn.ngExit.foreground: yellow
XRnMotif*XmRowColumn.ngQuit.background: red
XRnMotif*XmRowColumn.ngQuit.foreground: Black
XRnMotif*XmRowColumn.ngRescan.background:       violet
XRnMotif*XmRowColumn.ngRescan.foreground:       cyan
XRnMotif*XmRowColumn.ngSubscribe.background:    green
XRnMotif*XmRowColumn.ngSubscribe.foreground:    blue
XRnMotif*XmRowColumn.ngUnsub.background:        blue
XRnMotif*XmRowColumn.ngUnsub.foreground:        green
XRnMotif*background:    plum
XRnMotif*ScrollBarMgr.thickness:        22
XRnMotif*foreground:    red
-- 
	- Greg Earle
	  Phone: (818) 353-8695		FAX: (818) 353-1877
	  Internet: earle@isolar.Tujunga.CA.US
	  UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
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