Thread View: news.software.readers
6 messages
6 total messages
Started by Jakob Voß
Mon, 14 Aug 2000 00:00
[slrn] sorting groups
Author: Jakob Voß
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
28 lines
1485 bytes
1485 bytes
Since there is no build-in way to sort the list of groups in group
mode i tried to write a macro to do this, in a way like:
#v+
define sort_groups(mode)
{
if( is_group_mode() == 0 ) return;
variable server = server_name();
variable newsrc = ... % how to get newsrrc-Filename from server ?
() = system( sprintf("sort -o %s %s", newsrc, newsrc) );
% how to update display ?
}
#v-
can anybody help? I'd also like to move the groups up and down
from inside group mode - has anybody written something like
this before?
Jakob
--
<individual name="Jakob Voß" home="www.tu-chemnitz.de/~voj/">
<xsl:apply-templates/> <!-- maybe not predictable -->
</individual>
Re: [slrn] sorting groups
Author: Jakob Voß
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
27 lines
1949 bytes
1949 bytes
J.B. Nicholson-Owens wrote: > If you want to move newsgroups in a way relevant to newsreading >(as opposed to the ASCIIbetical sorting 'sort' offers), you'll want slrn to >do the moving. > >> [H]as anybody written something like this before? > >I've written a macro to do this, I'll e-mail you a copy if you like. I'm >still working on getting a website into shape so I can point people there >and the documentation for this macro isn't complete, but I'll help you get >through it. My group_move macro lets you move groups by name, number of >unread articles, number of high-scoring articles, subscription status, >reverse the current order and any other criteria (via S-Lang's array >manipulators--treat the group list like a string array). that would be nice - i did not know the possibility to edit the list list of groups directly via s-lang. So there's only missing a threaded view of groups ;-) Jakob -- <individual name="Jakob Voß" home="www.tu-chemnitz.de/~voj/"> <xsl:apply-templates/> <!-- maybe not predictable --> </individual>
Re: [slrn] sorting groups
Author: J.B. Nicholson-Owens
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
24 lines
1696 bytes
1696 bytes
Jakob =?iso-8859-1?Q?Vo=DF?= wrote:
> () = system( sprintf("sort -o %s %s", newsrc, newsrc) );
>
> % how to update display ?
> }
> #v-
You can update the display, but you'll really need to make slrn load the
newly shuffled newsrc. To my knowledge, slrn won't do that short of a
restart. If you want to move newsgroups in a way relevant to newsreading
(as opposed to the ASCIIbetical sorting 'sort' offers), you'll want slrn to
do the moving.
> [H]as anybody written something like this before?
I've written a macro to do this, I'll e-mail you a copy if you like. I'm
still working on getting a website into shape so I can point people there
and the documentation for this macro isn't complete, but I'll help you get
through it. My group_move macro lets you move groups by name, number of
unread articles, number of high-scoring articles, subscription status,
reverse the current order and any other criteria (via S-Lang's array
manipulators--treat the group list like a string array).
Re: [slrn] sorting groups
Author: Arjan Drieman
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
18 lines
1411 bytes
1411 bytes
On 14 Aug 2000 13:36:21 GMT, Jakob Vo�
<jakob.voss@informatik.tu-chemnitz.de> wrote:
>I'd also like to move the groups up and down
>from inside group mode - has anybody written something like
>this before?
hit ? in group mode and you'll see:
m Move newsgroup to different location.
Arjan
--
begin LOVE-LETTER-FOR-YOU.TXT.vbs
I'm a signature virus. Please copy me to help me spread!
Re: [slrn] sorting groups
Author: Thomas Schultz
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
14 lines
1349 bytes
1349 bytes
On 14 August 2000, Jakob Vo� <jakob.voss@informatik.tu-chemnitz.de> wrote: > Since there is no build-in way to sort the list of groups in group > mode i tried to write a macro to do this, in a way like: [...] The easiest way to do this is probably at startup time, using a wrapper script or a shell function around slrn. -- Thomas Schultz <tststs@gmx.de> *** Latest news from http://slrn.sourceforge.net/ -> [2000-08-05] www.slrn.org points to our new site -> [2000-08-04] Mailing list and ``wishlist'' page online
Re: [slrn] sorting groups
Author: Marc D. Williams
Date: Tue, 22 Aug 2000 00:00
Date: Tue, 22 Aug 2000 00:00
38 lines
2083 bytes
2083 bytes
On 14 Aug 2000 13:38:31 GMT, Arjan Drieman wrote: > >>I'd also like to move the groups up and down >>from inside group mode - has anybody written something like >>this before? > >hit ? in group mode and you'll see: > > m Move newsgroup to different location. > > Y'know, every once in awhile folks mention some key that is nowhere to be found in help.txt. This `move' feature is not in my help file and grepping around I only found it in changes.txt. Using slrn 0.9.6.2. Good thing the help isn't built in as it allows me to add new entries when I find something like this. [TIME PASSES] Well I'll be... For the past couple or so years I've been using the custom help.txt (SLRNHELP=<path>/help.txt) thinking that that file was all there was for getting online help. Just unset the variable and `discovered' the online help. Learn something new every day. (^_^) Good thing I didn't embarrass myself in a public foru... oh wait. :-) -- >>ANIME SENSHI<< Marc D. Williams marcdw@flash.net http://www.oldskool.org/~tvdog/ -- DOS Internet & Tandy 1000 http://www.geocities.com/SiliconValley/Platform/8269/ -- Win3.x Makeover
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