🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Daniel Price Sun, 08 Mar 1998 00:00
two slrn wishes
#39396
Author: Daniel Price
Date: Sun, 08 Mar 1998 00:00
31 lines
1613 bytes

Hi, I wondered if two simple wishes could be added to the wishlist:

1) More customization for the followup string-- I use:
      set followup "On %d, %r <%f> wrote:"

But the date frequently expands to be a very large string, which causes 
the followup string to exceed 80 columns, and me to have to go back and 
fiddle with it manually.  I'd like to be able to say something like 

set followup "On %W %M %D, %r <%f> wrote:"

where %M= the month as a 3 letter abbreviation, %W=the day of the week
as a 3 letter abbreviation, and %D is the numeric day of the month.
Auto-wrap of the followup string would also be nice, for those times
when the string does exceed 80 columns.

2) ^U should clear the various text prompts that slrn presents.  It's a
pain having to do ^A^K, and ^U is a defacto unix standard.  I thought I
was the only one who noticed, but the recent thread about it made me
remember that I had wanted to suggest it...

Thanks... And thanks, jed, for a great piece of software!
        
        -dp

-- 
Daniel Price -- dp@cs.brown.edu 

Re: two slrn wishes
#39413
Author: Jan Hlavacek
Date: Sun, 08 Mar 1998 00:00
27 lines
1692 bytes
On 8 Mar 1998 06:48:52 GMT, Daniel Price <dp@cs.brown.edu> wrote:
> Auto-wrap of the followup string would also be nice, for those times
> when the string does exceed 80 columns.

You can make your editor do it for you.  I use yhe following autocommand
with vim:

autocmd BufRead mutt*,.followup,.article,.letter,*/Postponed/* 1/^$/normal jgq$

> 
> 2) ^U should clear the various text prompts that slrn presents.  It's a
> pain having to do ^A^K, and ^U is a defacto unix standard.  I thought I
> was the only one who noticed, but the recent thread about it made me
> remember that I had wanted to suggest it...

It would actually be enough to allow use "readline" in definekey.
Currently,  one can use "readline" in .slrnrc,  but not in definekey.

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

slrn readline keymap (Was: Re: two slrn wishes)
#39422
Author: Jan Hlavacek
Date: Sun, 08 Mar 1998 00:00
28 lines
1938 bytes
On 8 Mar 1998 08:57:05 GMT, Jan Hlavacek
<lahvak@math.mps.ohio-state.edu> wrote:
> On 8 Mar 1998 06:48:52 GMT, Daniel Price <dp@cs.brown.edu> wrote:
> > 2) ^U should clear the various text prompts that slrn presents.  It's a
> > pain having to do ^A^K, and ^U is a defacto unix standard.  I thought I
> > was the only one who noticed, but the recent thread about it made me
> > remember that I had wanted to suggest it...
> 
> It would actually be enough to allow use "readline" in definekey.
> Currently,  one can use "readline" in .slrnrc,  but not in definekey.

To followup on myself,  "call" would have to be changed too,  or better,
slrn would have to set Slrn_Current_Mode when reading via readline.
Shortly,  it looks like a "nice" can of worms.

But it would be nice to have this more consistent.  If readline is
permited in .slrnrc setkey,  it should be permited in call and
definekey in S-Lang macros. John?

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Re: two slrn wishes
#39423
Author: Preben 'Peppe' Guldberg
Date: Mon, 09 Mar 1998 00:00
20 lines
1483 bytes
Thus wrote Jan Hlavacek <lahvak@math.mps.ohio-state.edu>:
[--- snip ---]
> It would actually be enough to allow use "readline" in definekey.
> Currently,  one can use "readline" in .slrnrc,  but not in definekey.

A work around might be to define a function in eg .slrn.sl, source it
and then use setkey to bind the function to a key.

Actually, I prefer to bind all functions like that for better overview
of bound keys.

Peppe
-- 
Preben Guldberg          __/-\__        The woods are lovely, dark and deep
c928400@student.dtu.dk    (o o)         But I have promises to keep
----------------------oOOo (_) oOOo--   And miles to go before I sleep.
http://www.student.dtu.dk/~c928400                           --Robert Frost

Re: two slrn wishes
#39425
Author: Jan Hlavacek
Date: Mon, 09 Mar 1998 00:00
24 lines
1751 bytes
On 9 Mar 98 00:04:49 GMT, Preben 'Peppe' Guldberg
<c928400@student.dtu.dk> wrote:
> Thus wrote Jan Hlavacek <lahvak@math.mps.ohio-state.edu>:
> [--- snip ---]
> > It would actually be enough to allow use "readline" in definekey.
> > Currently,  one can use "readline" in .slrnrc,  but not in definekey.
> 
> A work around might be to define a function in eg .slrn.sl, source it
> and then use setkey to bind the function to a key.

I tried that,  it does define the key,  but there is another problem.
You cannot "call" internal readline function,  as slrn's "call" doesn't
recognize readline mode.  I'll look into it when I have time,  it would
be nice having this option (how about vi keybinding in the readline?).

lahvak
-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

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