🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #263964

Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?

#263964
From: J.B. Nicholson
Date: Sun, 05 Apr 2020 19:20
44 lines
3055 bytes
Mike Yetto <unet.lighthouse@xoxy.net> wrote:
> Won't sticky tags come close to what you want?

Short answer: StickyTags saves the message-IDs of articles tagged with
a * so that when those articles show up in a group they are still
*-tagged (hence the * tag is said to "stick" to the article). This
isn't done with hiding articles from article mode or revealing those
articles later. Therefore StickyTags won't do what I'm asking about
here.

Thanks for pointing out StickyTags, though. I hope that StickyTags is
useful for you.

If anyone reading this isn't familiar with the StickyTags macro for
slrn, https://forestfield.org/slrn/#stickytags has some info about
that and https://forestfield.org/slrn/stickytags.tar.gz should point
to the latest version which I distribute.

Longer answer:

What I'm looking for is somewhat akin to what one can do in group
mode: hide unsubscribed groups from view and reveal those hidden
groups again.

But I'd like to have programmatic control over what is hidden,
detecting if anything is hidden, and not have merely a toggle where
one has to go to some effort (in a macro) to determine the current
state of the toggle (i.e. are we seeing groups we could flip the
toggle to hide?). I think this would be a useful basis for a
narrow/widen macro I've written a working proof-of-concept of (but it
is currently quite slow to widen).

StickyTags is typically used when one enters article mode (meaning
they came from another group or from group mode). But the network
access inherent in entering article mode is something I'm hoping to
avoid. Re-entering article mode means talking with a news server to
get data on a set of articles (such as the new articles) which is a
significantly slower operation than keeping article metadata in the
client's memory and showing/hiding it without ever leaving article
mode for the currently chosen group.

But this comes at some cost: Showing/hiding articles in article mode
could give us reason to review a lot of macros that do things with
articles by iterating over a set of articles.
Technical Details
Message-ID: <slrnr8kbs2.i2o.jbn@forestfield.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnr8j2iu.2k8.jbn@forestfield.org> <slrn20200405103954.799.twooffive@may.eternal-september.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnr8kbs2.i2o.jbn@forestfield.org>
Subject: Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Date: Sun, 05 Apr 2020 19:20:34 +0000
From: "J.B. Nicholson" <jbn@forestfield.org>
References: <slrnr8j2iu.2k8.jbn@forestfield.org> <slrn20200405103954.799.twooffive@may.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Organization: solani.org
Newsgroups: news.software.readers
Injection-Info: solani.org; logging-data="20346"; mail-complaints-to="abuse@news.solani.org"
Cancel-Lock: sha1:+ImMraJIDvn3t6B7Cz09CWHfX9s=
User-Agent: slrn/1.0.3 (Linux)
Lines: 43
X-User-Id: eJwFwYkBgDAIA8CVlCfgOGko+4/gXTpeqAKJyM1tk452th2ta13kfAeca45i8D6kIK4qY35ECBKw
Injection-Date: Sun, 5 Apr 2020 19:20:34 -0000 (UTC)