🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Tom Friedetzky Thu, 14 Jun 2007 20:15
[slrn] Tree view for group list?
#200793
Author: Tom Friedetzky
Date: Thu, 14 Jun 2007 20:15
45 lines
2967 bytes
Hi, I'm wondering if anyone has ever attempted to implement a tree view
for the group display in slrn, based on the Usenet hierarchy.  I reckon
it may not be that difficult, considering that we've already got tree
view for threads within a group.  Mind you, I haven't had a look at the
code in a loooong time, and I may very well be very wrong.  

Also, a feature that I would find very nice is arbitrary grouping of
groups (as opposed to grouping by hierarchy, what the tree view from
above would be, more or less).  I'm not necessarily thinking (deep)
trees here, but rather a flat structure with just clusters of groups (or
"folders", if you prefer).  Suppose you're reading a few computing
groups, a few games groups, a few language groups, and some stuff that
isn't easily put into any one category.  You can, of course, sort the
.newsrc into any order, which is precisely what I'm doing at the moment.
But wouldn't it be much nicer if you had something like:

  Computing
    news.software.readers
    comp.os.linux.misc
    [some more]
  Games
    rec.games.roguelike.nethack
    [some more]
  Language
    alt.usage.english
    [some more]
  Misc
    [the rest]

What would be the best way of going about this, implementation-wise?  I
guess we wouldn't want to mess with the format of the .newsrc files, "if
only" for reasons of compatibility with other clients (I do in fact
think this should be maintained at all costs).  Maybe just one
additional file (per server) that specifies the grouping, with pointers
into the .newsrc?  I guess consistency might be a problem... what if
other clients change the order of groups, or the groups themselves?
Hmm, coming to think of it, does the .newsrc allow comments?  If that
were possible we could easily hide the grouping structure inside
comments so that other clients don't get confused.  OTOH, we could again
not stop impolite clients from just removing the comments, I suppose, or
from generally doing as they please.

Any ideas?  (Apologies for the long, boring post.)

  Tom
Re: [slrn] Tree view for group list?
#200801
Author: Troy Piggins
Date: Thu, 14 Jun 2007 22:27
28 lines
2468 bytes
* Tom Friedetzky is quoted & my replies are inline below :
> Hi, I'm wondering if anyone has ever attempted to implement a tree view
> for the group display in slrn, based on the Usenet hierarchy.  I reckon
> it may not be that difficult, considering that we've already got tree
> view for threads within a group.  Mind you, I haven't had a look at the
> code in a loooong time, and I may very well be very wrong.  

Haven't seen anything like that.

> Also, a feature that I would find very nice is arbitrary grouping of
> groups (as opposed to grouping by hierarchy, what the tree view from
> above would be, more or less).  I'm not necessarily thinking (deep)
> trees here, but rather a flat structure with just clusters of groups (or
> "folders", if you prefer).  Suppose you're reading a few computing
> groups, a few games groups, a few language groups, and some stuff that
> isn't easily put into any one category.  You can, of course, sort the
> .newsrc into any order, which is precisely what I'm doing at the moment.
...

Have you tried the group_sort macro?

http://forestfield.org/slrn/#group_sort

-- 
Troy Piggins | http://piggo.com/~troy                             
slrn macros and howto:                      ___  |   __   __    ,-O   (o-    O 
http://piggo.com/~troy/slrn                |___  | |/   |/  |  O   )  //\     O
RLU#415538                                  ___| | |    |   |   `-O   V_/_  OOO
Re: [slrn] Tree view for group list?
#200802
Author: Whiskers
Date: Thu, 14 Jun 2007 22:30
36 lines
2254 bytes
On 2007-06-14, Tom Friedetzky <friedetzky@googlemail.com> wrote:

[...]

> But wouldn't it be much nicer if you had something like:
>
>   Computing
>     news.software.readers
>     comp.os.linux.misc
>     [some more]
>   Games
>     rec.games.roguelike.nethack
>     [some more]
>   Language
>     alt.usage.english
>     [some more]
>   Misc
>     [the rest]
>
> What would be the best way of going about this, implementation-wise?

[...]

It doesn't let you put in any 'spacers' or 'folder names', but when 
viewing the list of subscribed groups you can move each one to a different 
place in the list.  With the cursor next to the entry you want to move, hit 
the m key then use the up and down arrow keys to move it to the desired 
position, then hit the return key.  Tedious, but it does mean you can sort 
your regular groups into an order that makes sense to you.  The sort order 
is preserved from one session to the next.  I don't know where that 
information is stored!

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Tree view for group list?
#200809
Author: Thierry B.
Date: Fri, 15 Jun 2007 09:52
13 lines
1633 bytes
--{ Whiskers a plopé ceci: }--

> is preserved from one session to the next.  I don't know where that 
> information is stored!
>
   In the order of lines in ~/.jnewsrc ?


-- 
Si je suis descendu, je ne regretterai absolument rien.
La termitière future m'épouvante. Et je hais leurs vertus de robots.
Moi, j'étais fait pour être jardinier.
        -- Antoine de Saint-Exupéry - Ecrits de guerre
Re: [slrn] Tree view for group list?
#200811
Author: Tom Friedetzky
Date: Fri, 15 Jun 2007 11:51
10 lines
1291 bytes
On Thu Jun 14 2007 at 22:27:52 GMT, Troy Piggins <usenet-0706@piggo.com>
wrote:
>  * Tom Friedetzky is quoted & my replies are inline below :
> > You can, of course, sort the .newsrc into any order, which is
> > precisely what I'm doing at the moment.
>  ...
> 
>  Have you tried the group_sort macro?

No, I haven't; thanks for the pointer.
Re: [slrn] Tree view for group list?
#200813
Author: Whiskers
Date: Fri, 15 Jun 2007 13:20
15 lines
1823 bytes
On 2007-06-15, Thierry B. <tth@prout.stex> wrote:
> --{ Whiskers a plopé ceci: }--
>
>> is preserved from one session to the next.  I don't know where that 
>> information is stored!
>>
>    In the order of lines in ~/.jnewsrc ?

I don't propose to analyse the tens of thousands of lines in my ~/.jnewsrc 
to see if moving items in my list of subscribed groups has any effect.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Tree view for group list?
#200814
Author: SINNER
Date: Fri, 15 Jun 2007 14:24
26 lines
2081 bytes
* Whiskers wrote in news.software.readers:

> On 2007-06-15, Thierry B. <tth@prout.stex> wrote:
>> --{ Whiskers a plopé ceci: }--
>>
>>> is preserved from one session to the next.  I don't know where that 
>>> information is stored!
>>>
>>    In the order of lines in ~/.jnewsrc ?
> 
> I don't propose to analyse the tens of thousands of lines in my
> ~/.jnewsrc to see if moving items in my list of subscribed groups has
> any effect. 
> 

You could easily grep it for ! ( I believe) and see only subscribed 
groups in the order they appear in the file.

You could then move one group using 'm' and regrep the file to see if the 
order changed, OR you could have diff do it for you.

Who needs to spend hours wasting time analyzing when the tools can do all 
the heavy lifting :)

-- 
David
Re: [slrn] Tree view for group list?
#200816
Author: Whiskers
Date: Fri, 15 Jun 2007 14:52
33 lines
2551 bytes
On 2007-06-15, SINNER <arcade.master@gmail.com> wrote:
> * Whiskers wrote in news.software.readers:
>
>> On 2007-06-15, Thierry B. <tth@prout.stex> wrote:
>>> --{ Whiskers a plopé ceci: }--
>>>
>>>> is preserved from one session to the next.  I don't know where that 
>>>> information is stored!
>>>>
>>>    In the order of lines in ~/.jnewsrc ?
>> 
>> I don't propose to analyse the tens of thousands of lines in my
>> ~/.jnewsrc to see if moving items in my list of subscribed groups has
>> any effect. 
>> 
>
> You could easily grep it for ! ( I believe) and see only subscribed 
> groups in the order they appear in the file.
>
> You could then move one group using 'm' and regrep the file to see if the 
> order changed, OR you could have diff do it for you.

Perhaps someone will try that.

> Who needs to spend hours wasting time analyzing when the tools can do all 
> the heavy lifting :)

Who needs to poke around inside something that works fine as it is?  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Tree view for group list?
#200819
Author: Thierry B.
Date: Fri, 15 Jun 2007 15:58
17 lines
1927 bytes
--{ Whiskers a plopé ceci: }--

>>> is preserved from one session to the next.  I don't know where that 
>>> information is stored!
>>>
>>    In the order of lines in ~/.jnewsrc ?
>
> I don't propose to analyse the tens of thousands of lines in my ~/.jnewsrc 
> to see if moving items in my list of subscribed groups has any effect.

   Don't analyze it yourself. Ask your computer. Magic word is "diff".


-- 
   { SIGAREDUPHARAON, "OPIUM" },
               /* The process gets dizzy */
                                     --{ f.m.b.l revisite la command kill }--
Re: [slrn] Tree view for group list?
#200821
Author: Blinky the Shark
Date: Fri, 15 Jun 2007 16:32
25 lines
2256 bytes
Whiskers wrote:
> On 2007-06-15, Thierry B. <tth@prout.stex> wrote:
>> --{ Whiskers a plopé ceci: }--
>>
>>> is preserved from one session to the next.  I don't know where that
>>> information is stored!
>>>
>>    In the order of lines in ~/.jnewsrc ?
>
> I don't propose to analyse the tens of thousands of lines in my
> ~/.jnewsrc to see if moving items in my list of subscribed groups has
> any effect.

Would hardly have to.  Note the line number for one group you're
subscribed to.  Move that group.  Page-search for that group's name.
See what the line number is now.

Easier yet: look at your group order in one window.  Subscribed groups
are at the top.  See if their order matches that in your groups window.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
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