Thread View: news.software.readers
5 messages
5 total messages
Started by Adam Funk
Wed, 22 Feb 2006 12:26
[slrn] Anyone have some s-lang code to do quick score setting?
Author: Adam Funk
Date: Wed, 22 Feb 2006 12:26
Date: Wed, 22 Feb 2006 12:26
18 lines
1403 bytes
1403 bytes
I'm trying to figure out how to write some s-lang code to get slrn to
do the following tasks with one or two keystrokes each in article
mode:
(1) add a score entry of +10 for all groups for the current article's
Subject, with an expiry of +30 days;
(2) add a score entry of +10 for all groups for the current article's
From, with no expiry.
But I'm fairly new to slrn and completely new to s-lang, so I'd
appreciate it if anyone could post some code that does something close
to the above tasks so I could modify it for my own needs and learn as
I go.
Thanks,
Adam
Re: [slrn] Anyone have some s-lang code to do quick score setting?
Author: SINNER
Date: Wed, 22 Feb 2006 15:17
Date: Wed, 22 Feb 2006 15:17
28 lines
1975 bytes
1975 bytes
* Adam Funk wrote in news.software.readers: > I'm trying to figure out how to write some s-lang code to get slrn to > do the following tasks with one or two keystrokes each in article > mode: > > (1) add a score entry of +10 for all groups for the current article's > Subject, with an expiry of +30 days; > > (2) add a score entry of +10 for all groups for the current article's > From, with no expiry. > > But I'm fairly new to slrn and completely new to s-lang, so I'd > appreciate it if anyone could post some code that does something close > to the above tasks so I could modify it for my own needs and learn as > I go. > > Thanks, > Adam > > Have you seen this macro: http://www.slrn.org/macros/onekey-score.sl -- David
Re: [slrn] Anyone have some s-lang code to do quick score setting?
Author: Adam Funk
Date: Wed, 22 Feb 2006 15:37
Date: Wed, 22 Feb 2006 15:37
13 lines
1231 bytes
1231 bytes
On 2006-02-22, SINNER <arcade.master@gmail.com> wrote: > Have you seen this macro: Obviously not!... > http://www.slrn.org/macros/onekey-score.sl ...but it looks extremely useful to me. I think it's a bit more complicated than what I want to do, but it certainly gives me a readable, documented bit of code to work with. Thanks very much!
Re: [slrn] Anyone have some s-lang code to do quick score setting?
Author: Adam Funk
Date: Wed, 22 Feb 2006 16:49
Date: Wed, 22 Feb 2006 16:49
16 lines
1562 bytes
1562 bytes
On 2006-02-22, Adam Funk <a24061@yahoo.com> wrote:
>> http://www.slrn.org/macros/onekey-score.sl
>
> ...but it looks extremely useful to me. I think it's a bit more
> complicated than what I want to do, but it certainly gives me a
> readable, documented bit of code to work with.
OK, it turned out to be quite easy to do what I wanted just putting
this in ~/.slrnrc:
interpret ".slrn/onekey-score.sl"
setkey article "OneKeyScore->create_score('f', +10, 'a', 0, 1);" "^q"
setkey article "OneKeyScore->create_score('s', +10, 'a', 30, 1);" "^w"
Thanks again!
Re: [slrn] Anyone have some s-lang code to do quick score setting?
Author: SINNER
Date: Wed, 22 Feb 2006 20:45
Date: Wed, 22 Feb 2006 20:45
25 lines
2016 bytes
2016 bytes
* Adam Funk wrote in news.software.readers:
> On 2006-02-22, Adam Funk <a24061@yahoo.com> wrote:
>
>>> http://www.slrn.org/macros/onekey-score.sl
>>
>> ...but it looks extremely useful to me. I think it's a bit more
>> complicated than what I want to do, but it certainly gives me a
>> readable, documented bit of code to work with.
>
> OK, it turned out to be quite easy to do what I wanted just putting
> this in ~/.slrnrc:
>
> interpret ".slrn/onekey-score.sl"
> setkey article "OneKeyScore->create_score('f', +10, 'a', 0, 1);" "^q"
> setkey article "OneKeyScore->create_score('s', +10, 'a', 30, 1);" "^w"
>
> Thanks again!
>
[*]I live but to serve ;)
--
David
[*] Stolen from Blinky :)
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