Thread View: news.software.readers
5 messages
5 total messages
Started by J.B. Nicholson
Sun, 05 Apr 2020 07:35
[slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Author: J.B. Nicholson
Date: Sun, 05 Apr 2020 07:35
Date: Sun, 05 Apr 2020 07:35
16 lines
1550 bytes
1550 bytes
May we please have a way to hide and recall articles in article mode by giving some unique identifier(s) to know which article(s) to hide (like message-IDs or whatever is more appropriate)? And a way to know if any articles are being hidden? I'm working on a macro to do this job but the method available to me is slow because recalling hidden articles requires fetching info from the newsserver. I store the message-IDs of articles I'll expunge and later restore to the article list via locate_header_by_msgid(msgID, 1). Is there a function to do this hiding/recalling job which I've apparently forgotten? Or could there be a faster way to hide/recall articles? Thanks for considering this.
Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Author: Mike Yetto
Date: Sun, 05 Apr 2020 14:43
Date: Sun, 05 Apr 2020 14:43
28 lines
1975 bytes
1975 bytes
So it is writ, so mote it be.... J.B. Nicholson <jbn@forestfield.org>: > May we please have a way to hide and recall articles in article mode > by giving some unique identifier(s) to know which article(s) to hide > (like message-IDs or whatever is more appropriate)? And a way to know > if any articles are being hidden? > I'm working on a macro to do this job but the method available to me > is slow because recalling hidden articles requires fetching info from > the newsserver. I store the message-IDs of articles I'll expunge and > later restore to the article list via locate_header_by_msgid(msgID, > 1). > Is there a function to do this hiding/recalling job which I've > apparently forgotten? Or could there be a faster way to hide/recall > articles? > Thanks for considering this. Won't sticky tags come close to what you want? It was written years ago by someone called J.B. Nicholson-Owens. Anyone you know? Mike "someone is missing something, is it me?" Yetto -- "The cure for a fallacious argument is a better argument, not the suppression of ideas." - Carl Sagan
Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Author: J.B. Nicholson
Date: Sun, 05 Apr 2020 19:20
Date: Sun, 05 Apr 2020 19:20
44 lines
3055 bytes
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.
Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Author: Mike Yetto
Date: Mon, 06 Apr 2020 16:53
Date: Mon, 06 Apr 2020 16:53
22 lines
1808 bytes
1808 bytes
So it is writ, so mote it be.... J.B. Nicholson <jbn@forestfield.org>: > Mike Yetto <unet.lighthouse@xoxy.net> wrote: >> Won't sticky tags come close to what you want? > 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. Since I use Leafnode2 along with slrn this pointed me towards a different approach. Would it be possible to post the articles in question to a local group and just hide unhide those groups? Just treating those groups normally would show you when there are new posts there. Mike "feel free to use or discard this idea as appropriate" Yetto -- "People almost invariably arrive at their beliefs not on the basis of proof but on the basis of what they find attractive." - Blaise Pascal
Re: [slrn] Feature request: Macro functionality to hide/unhide articles in article mode?
Author: J.B. Nicholson
Date: Tue, 07 Apr 2020 02:52
Date: Tue, 07 Apr 2020 02:52
35 lines
2834 bytes
2834 bytes
Mike Yetto <unet.lighthouse@xoxy.net> wrote: > Since I use Leafnode2 along with slrn this pointed me towards a > different approach. Would it be possible to post the articles in > question to a local group and just hide unhide those groups? Just > treating those groups normally would show you when there are new > posts there. I think that there are some misunderstandings here: the new feature I'm asking for doesn't involve posting new articles at all. This feature involves articles that have already been posted. Also, I'm asking about adding a feature to be used only in article mode. I compared this to hiding groups in order to illustrate the idea that hiding/revealing something is what I'm after; I'd like to avoid any client-server interaction because that network traffic slows down the entire process. Perhaps I should better explain what I'm working on: a macro set to let the user specify criteria to select some articles and see only those articles which match the criteria. This would be done by hiding non-matching articles. Hence the need to hide specific articles. At this point the user could do whatever they like using slrn's functionality and at any point the user could press a key to unhide the previously-hidden articles. I have a working proof-of-concept demo running which lets the user input a subject substring. Non-matching articles are hidden, leaving only the matching articles behind. Another key restores the previously hidden articles to the article view. This is done in a way I wouldn't want to use for very long due to the way in which articles are restored to the article view (unhidden) which results in a lot of network chatter that slows down the whole process. Hopefully that makes things more clear.
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