🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Sunil S Patel Mon, 06 May 1996 00:00
nn/trn like selection for slrn patch...
#21331
Author: Sunil S Patel
Date: Mon, 06 May 1996 00:00
92 lines
3070 bytes
Hi,

Lately I've seen a couple of postings asking/wishing that slrn had
more of trn/nn style of news reading. That is, the basic method is to
choose the articles you wish to read and then read them all at once.
This is of course, opposed to the pick article /read article method. I
strongly prefer the trn method. I've been using this little patch I've
made to slrn, and so I've decided it might be useful for others out
there too...

Basically I've added a function I call 'keep_selected_only' which I
like bind to the tab key. You enter a group, select which articles you
like by marking them with the '*' key. When you're done selecting,
you hit the 'tab' key and bam, you're left with only the articles you
selected, and those are now unselected (no '*' beside them) too.

Perhaps if others find it useful enough (I do!) maybe John can add it
to the slrn. Or if slrn had some macro capiblity, you could do it with
that instead.

Attached at the bottom of this post is the patch. Save it and apply it
to the file art.c like so: "patch art.c < mypatch"

Add the following to the bottom of your .slrnrc file; I prefer the 'tab' key.

setkey article  keep_selected_only "^I"


	-Sunil

-- 

Sunil S. Patel
sunil@drycas.club.cc.cmu.edu
http://drycas.club.cc.cmu.edu/~sunil

Patch: (for slrn 0.8.8.1!) ----------------------------------------------------

*** art.c       Mon May  6 14:43:59 1996
--- /c/slrn/slrn/src/art.c      Mon May  6 14:38:57 1996
***************
*** 150,156 ****
--- 150,158 ----
  static Slrn_Article_Line_Type *Top_Line, *Current_Line;
  Slrn_Article_Line_Type *Slrn_Article_Lines;
  
+ static void keep_selected_only (void);
  
+ 
  static void quick_help (void)
  {
     char *msg;
***************
*** 4956,4961 ****
--- 4958,4964 ----
  
  static SLKeymap_Function_Type Art_Functions [] =
  {
+    A_KEY("keep_selected_only", keep_selected_only),
     A_KEY("browse_url", browse_url),
     A_KEY("art_xpunge", art_xpunge),
     A_KEY("wrap_article", wrap_article),
***************
*** 6000,6003 ****
--- 6003,6024 ----
  }
  
  
+ static void keep_selected_only (void)
+ {
+  
+ /* catchup all the articles */
+ catch_up_all();
+  
+ /* remove them from the screen */
+ art_xpunge();
+  
+ /* untag them all */
+ Slrn_Prefix_Arg_Ptr = 1;
+ toggle_header_tag(); 
+ 
+ /* goto to the first article */
+ art_header_bob();
+  
+  
+ }




Re: nn/trn like selection for slrn patch...
#21347
Author: John E. Davis
Date: Mon, 06 May 1996 00:00
17 lines
1198 bytes
On 6 May 1996 19:16:17 GMT, Sunil S Patel <SUNIL@drycas.club.cc.cmu.edu>
wrote:
 : Perhaps if others find it useful enough (I do!) maybe John can add it
 : to the slrn. Or if slrn had some macro capiblity, you could do it with
 : that instead.
 
One of the next releases of slrn will have macros in the form of slang
functions.  Macros and base64 decoding are at the top of the list.

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis


Re: nn/trn like selection for slrn patch...
#21428
Author: Lars Marowsky-Bree
Date: Wed, 08 May 1996 00:00
19 lines
1575 bytes
On 6 May 1996 21:51:01 GMT, John E. Davis <davis@space.mit.edu> wrote:

> One of the next releases of slrn will have macros in the form of slang
> functions.  Macros and base64 decoding are at the top of the list.

I am really looking forward to this. Perhaps there could also be some kind
of "extended interface" between the newsreader and the editor? Since I am
using slrn and jed, which both use the slang-library, I can imagine some
creative uses for passing the article score, for example.

-- 
Lars Marowsky-Bree   Voice: +49-571-63663   PGP-key avail. via server
HomePage: http://www.teuto.de/~lmb/    Mail: lmb@pointer.in-minden.de
PGP-Id: 0xDAB57941 / CF FC 3A F0 86 F1 D3 EB  79 8A CF 75 4F 4C 81 DF



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