Article View: news.software.readers
Article #76293Re: [slrn] group sorting
From: Frank Hahn
Date: Fri, 13 Apr 2001 01:10
Date: Fri, 13 Apr 2001 01:10
61 lines
3504 bytes
3504 bytes
On 12 Apr 2001 17:06:30 GMT, Thomas Schultz <tststs@gmx.de> wrote: > * Frank Hahn [2001-04-11 01:10] : > >> I have a macro called group_sort.sl that I found somewhere. [...] > > I could find group_sort.sl on the net, but it did not contain any > copyright statement, so I do not know who to ask whether I may put it > on SourceForge. > Here is a note that I had in a file that I saved from news.software.readers. At the time, I deleted all of the headers, etc. to save room in my file. ---------------Start--------------------- Subject: Re: slrn - aplphabetic sorting John Oliver wrote: >My slrn sorts newsgroups Z to A. I can, of course, use sort on my .jnewsrc. >But as soon as there's a new newsgroup, it shows up at the top, rather than in >correct alphabetical order. Is there a way to make it sort all groups, new or >otherwise, from A to Z? Sven Guckes replied: > set sorting_method 9 That applies only to article sorting, not group sorting. To do group sorting within slrn you need to either use a macro or manually position the group where you want it to go (either by transposing groups or moving the group to its destination). Here's a macro that will sort groups from A to Z or reverse the current order of the groups. I'm working on a fancier version to do multiple types of sorting and sort a subset of the groups. To install, save the code as "group_sort.sl" (your homedir is a good easy place to put it) and include the following in your slrn.rc: interpret "group_sort.sl" setkey group Group_Sort->ascii_sort "^Ks" setkey group Group_Sort->reverse "^Kr" Then quit slrn (if you're running it) and restart slrn. Now Control-K then "s" will sort the groups A-Z. Flipping the order of the groups (no matter how they're arranged) can be done by hitting Control-K then "r". I made up these keybindings to get you started, change them if you wish. If you're into S-Lang macros, you might find Group_Sort->move_group_up_n() and Group_Sort->move_group_down_n() handy. They work just like group_up/down_n() but these functions move the current group n groups up or down the group list (instead of moving the cursor n groups up or down the group list). If you have no idea what this paragraph is referring to, that's okay. ---------------End----------------------- I know it does not help in finding the author, but maybe one day if Google/Deja gets back completely, it might come in handy. -- Frank Hahn Vote for ME -- I'm well-tapered, half-cocked, ill-conceived and TAX-DEFERRED!
Technical Details
Message-ID:
<slrn9dcjvc.kst.fhahn@bart.fcjc.net>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!supernews.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!fhahnReferences:
<slrn9d23go.1vae.ramma@www.invert.com> <td3ji6mulehm4b@news.supernews.com> <slrn9d7atl.d9a.fhahn@bart.fcjc.net> <slrn9dbo4m.1h6.tststs@starflower.tststs.ddns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn9dcjvc.kst.fhahn@bart.fcjc.net> Subject: Re: [slrn] group sorting Date: Fri, 13 Apr 2001 01:10:06 -0000 From: fhahn@yahoo.com (Frank Hahn) References: <slrn9d23go.1vae.ramma@www.invert.com> <td3ji6mulehm4b@news.supernews.com> <slrn9d7atl.d9a.fhahn@bart.fcjc.net> <slrn9dbo4m.1h6.tststs@starflower.tststs.ddns.org> 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!supernews.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!fhahn Newsgroups: news.software.readers Organization: Posted via Supernews, http://www.supernews.com Reply-To: fhahn@yahoo.com Mail-Copies-To: nobody X-No-Productlinks: yes User-Agent: slrn/0.9.7.0 (SunOS) X-Complaints-To: newsabuse@supernews.com Lines: 60