Article View: news.software.readers
Article #21331nn/trn like selection for slrn patch...
From: Sunil S Patel
Date: Mon, 06 May 1996 00:00
Date: Mon, 06 May 1996 00:00
92 lines
3070 bytes
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();
+
+
+ }
Technical Details
Message-ID:
<slrn4os5u6.ga2nos.SUNIL@soong.club.cc.cmu.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn4os5u6.ga2nos.SUNIL@soong.club.cc.cmu.edu> Subject: nn/trn like selection for slrn patch... Date: Mon, 06 May 1996 00:00:00 +0000 From: SUNIL@drycas.club.cc.cmu.edu (Sunil S Patel) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 153320453 Organization: Carnegie Mellon University Computer Club Keywords: slrn trn Reply-to: sunil@drycas.club.cc.cmu.edu Newsgroups: news.software.readers