🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by billy chan Mon, 29 May 2000 00:00
Re: slrn: keeping default settings between sessions?
#61959
Author: billy chan
Date: Mon, 29 May 2000 00:00
14 lines
1298 bytes
[28 May 2000 21:03:16 GMT] bluemoon@ux6.cso.uiuc.edu:
>Tony wrote:
>> Is it possible to get slrn to keep the default settings like the
>> subject search keyword between settings? It retains this within the
>> same session but once the news readers is exited it discards it.

>Yes, but not without a macro (or code change).  One could write a macro that
>wrapped the search commands and saved the search strings then loaded them on
>startup in the next slrn session.

Are there any examples of such a macro? I have been longed to save a
few save-post paths and email addresses I frequently forward posts to.

Re: slrn: keeping default settings between sessions?
#62011
Author: Dawn Owens-Nicholson
Date: Wed, 31 May 2000 00:00
37 lines
2978 bytes
Sylvan Butler wrote:
> As a minimum, it should remember the
> previous entry into the field and use that as a default the next time.
> E.g. when forwarding via e-mail an article to someone, instead of always
> a blank address prompt, it should default to the last address.

This can be done with macros, but there is probably a far more elegant and
easier approach to be done with a patch.  Macros would involve wrapping
every intrinsic that uses prompts where you can recall previously entered
values so the previous value can be put into the prompt and the new value
saved to a text file somewhere.  All this intrinsic wrapping leads to
problems down the road.

> A step above the minimum would be a default to the last address, but a
> scrollable history list (using the arrows by default for up/down ?)
> would remember the last N used addresses.  (Obviously the keys and the
> number remembered should be configurable.  When N is one it would act as
> the minimum mentioned above.)

This is the more difficult part to do with macros.  It's usefulness is so
limited, I'm not sure this is worth doing in this way.  Doing this with a
macro would require essentially recreating the read_mini() and no echo
version where every keystroke is captured and handled appropriately.  The
upshot of this is vi/emacs/etc. keymaps become possible.  Unfortunately the
intrinsics wouldn't use this look-alike function so you'd be back to square
one when you're using the intrinsics.

Another approach would be to make the prompts extensible via hooks--if you
call for a previously entered value a hook is run and if it returns a value,
that value is used for the recalled value.  If there is no returned value
the current recall functionality is there to recall the thing you entered in
this session.  Maybe one would be able to use setkey for readline to call
functions and make the cursor do things (move around & delete/insert
characters).  Something along these lines would make all the
readline-related wishes implementable via macros.

Re: slrn: keeping default settings between sessions?
#62013
Author: Sylvan Butler
Date: Wed, 31 May 2000 00:00
29 lines
2261 bytes
On Wed, 31 May 2000 15:06:48 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> wrote:
>billy chan wrote:
>> Are there any examples of such a macro? I have been longed to save a
>> few save-post paths and email addresses I frequently forward posts to.
>
>This is different from what I was thinking you meant.  Exactly how were you
>thinking this feature should work?

I've been wanting the same thing.  As a minimum, it should remember the
previous entry into the field and use that as a default the next time.
E.g. when forwarding via e-mail an article to someone, instead of always
a blank address prompt, it should default to the last address.

A step above the minimum would be a default to the last address, but a
scrollable history list (using the arrows by default for up/down ?)
would remember the last N used addresses.  (Obviously the keys and the
number remembered should be configurable.  When N is one it would act as
the minimum mentioned above.)

sdb

-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: slrn: keeping default settings between sessions?
#62015
Author: Dawn Owens-Nicholson
Date: Wed, 31 May 2000 00:00
8 lines
1083 bytes
billy chan wrote:
> Are there any examples of such a macro? I have been longed to save a
> few save-post paths and email addresses I frequently forward posts to.

This is different from what I was thinking you meant.  Exactly how were you
thinking this feature should work?

Re: slrn: keeping default settings between sessions?
#62045
Author: Ted H.
Date: Wed, 31 May 2000 00:00
14 lines
1148 bytes
On 31 May 2000 18:27:19 GMT,
  John E. Davis <davis@space.mit.edu> wrote:
> It is not exactly what you want, but within the same slrn session, the
> up/down arrows may be used to retrieve previously entered text.

This is a nice feature--I use it a lot.

Ted Heise

-- 
Theodore W. Heise   <theise@netins.net>    West Lafayette, IN, USA
PGP fingerprint = 5B C5 B4 54 3C 30 E3 2C  A2 FA 81 1C 39 06 B8 25

Re: slrn: keeping default settings between sessions?
#62057
Author: John E. Davis
Date: Wed, 31 May 2000 00:00
11 lines
1184 bytes
On 31 May 2000 18:03:36 GMT, Sylvan Butler <nospam+_no_Zs__0005@hpb13799z.zboi.hpz.com.invalid>
wrote:
>E.g. when forwarding via e-mail an article to someone, instead of always
>a blank address prompt, it should default to the last address.

It is not exactly what you want, but within the same slrn session, the
up/down arrows may be used to retrieve previously entered text.

--John

Re: slrn: keeping default settings between sessions?
#62072
Author: Sylvan Butler
Date: Thu, 01 Jun 2000 00:00
22 lines
1925 bytes
On 31 May 2000 18:27:19 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On 31 May 2000 18:03:36 GMT, Sylvan Butler <nospam+_no_Zs__0005@hpb13799z.zboi.hpz.com.invalid>
>wrote:
>>E.g. when forwarding via e-mail an article to someone, instead of always
>>a blank address prompt, it should default to the last address.
>
>It is not exactly what you want, but within the same slrn session, the
>up/down arrows may be used to retrieve previously entered text.

Why, so it is!

That helps...  Wonder why I never noticed this before.  :)

sdb
-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

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