🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Dawn Owens-Nicholson Thu, 18 May 2000 00:00
Re: slrn key bindings
#61693
Author: Dawn Owens-Nicholson
Date: Thu, 18 May 2000 00:00
8 lines
1074 bytes
Chris Cera wrote:
> Are any 'vi' key bindings avaiable, or just 'hjkl'.  If not, does anyone
> have a slrnrc file with these mappings??

I'm not sure what editor keymappings would make sense for a newsreader.  If
you have something specific in mind, post your idea.

Re: slrn key bindings
#61671
Author: Martijn van Buul
Date: Thu, 18 May 2000 00:00
21 lines
1551 bytes
It occurred to me that Dawn Owens-Nicholson wrote in news.software.readers:
> Chris Cera wrote:
> > Are any 'vi' key bindings avaiable, or just 'hjkl'.  If not, does anyone
> > have a slrnrc file with these mappings??
> 
> I'm not sure what editor keymappings would make sense for a newsreader.  If
> you have something specific in mind, post your idea.

Just a wild guess:

When slrn prompts for some input, it uses WordStar-ish keystrokes (CTRL-A
to get to the beginning of the prompt, CTRL-E for the end etc). Some people
prefer <esc>0 and <esc>$ respectively.

Martijn -that's what VI-keys are for, no?- van Buul

-- 
    Martijn van Buul -  Pino@dohd.cx - http://www.stack.nl/~martijnb/
		Visit OuterSpace: mud.stack.nl 3333

Re: slrn key bindings
#61682
Author: Dawn Owens-Nicholson
Date: Thu, 18 May 2000 00:00
9 lines
1210 bytes
Chris Cera wrote:
> I meant just instead of using CNTL-N and CNTL-P when browsing articles,
> can you use 'j' and 'k' respectively for this task?

No, currently j and k insert themselves at the cursor.  Someday this might
be alterable via macros but for now only a source code patch will change
this behavior.

Re: slrn key bindings
#61719
Author: Csaba Raduly
Date: Fri, 19 May 2000 00:00
27 lines
2044 bytes
18 May 2000: A formal bug report was sent to Seti@Home, because the
following message originated from bluemoon@ux6.cso.uiuc.edu (Dawn
Owens-Nicholson) was reported as containing signs of intelligence: 

>Chris Cera wrote:
>> I meant just instead of using CNTL-N and CNTL-P when browsing
>> articles, can you use 'j' and 'k' respectively for this task?
>
>No, currently j and k insert themselves at the cursor.  Someday this
>might be alterable via macros but for now only a source code patch
>will change this behavior.

I think he meant while reading. j is used to jump to an article, 
whereas k is for scoring. I'm sure these are reconfigurable...
-- 
Csaba Raduly, Software Developer (OS/2), Sophos Anti-Virus
mailto:csaba.raduly@sophos.com      http://www.sophos.com/
US Support +1 888 SOPHOS 9      UK Support +44 1235 559933
Life is complex, with real and imaginary parts.

-----BEGIN GEEK CODE BLOCK----- 
Version 3.1
GCS/IT/MU d- s:- a31 C++$ UL+ P+>+++ L++ E- W+ N++ w++>$ O++$ 
M-(+) V- PGP- t+ X++ R* tv++ b++ DI+++ D++ G- e+++ h-- r-- !y+
-----END GEEK CODE BLOCK----- 

Re: slrn key bindings
#61745
Author: Dawn Owens-Nicholson
Date: Sat, 20 May 2000 00:00
17 lines
1697 bytes
Csaba Raduly wrote:
> I think he meant while reading. j is used to jump to an article, 
> whereas k is for scoring. I'm sure these are reconfigurable...

Ah, I see now (somehow I was thinking of history line recall during
editing).  Yes they are reconfigurable and you don't need macros to do
simple cursor movement in a lot of cases.  Consider:

  setkey article up   "j"            % move header cursor up one row
  setkey article down "k"            % move header cursor down one row

I don't use vi, but if the original poster needs help, I'm sure there are
plenty of people around this group willing to help.  I'd be happy to help
provided a sufficiently detailed description of how the vi keystroke
behaves.

Re: slrn key bindings
#61755
Author: Ralf Arens
Date: Mon, 22 May 2000 00:00
54 lines
2631 bytes
Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> wrote:

> Chris Cera wrote:
>> I meant just instead of using CNTL-N and CNTL-P when browsing articles,
>> can you use 'j' and 'k' respectively for this task?

> No, currently j and k insert themselves at the cursor.

Maybe I don't understand what you're talking about, but here in my
slrn nothing inserts at the cursor when I'm selecting groups /
browsing articles / reading articles.

> Someday this might be alterable via macros but for now only a source
> code patch will change this behavior.

If I understand correctly what Chris wants, here's the solution:

,----[ .slrnrc ]
| setkey group down                       "j"
| setkey group up                         "k"
| setkey group select_group               "l"
|
| setkey article up                       "k"
| setkey article down                     "j"
| setkey article scroll_dn                "l"
`----

,----[ .slrn.sl ]
| % cursor left / h / i
| % go from article view to header view, and from there to group view
|
| define smart_cursleft ()
| {
|     if (is_article_visible ())
|         call("hide_article");
|     else
|         call("quit");
| }
| definekey ("smart_cursleft", "\e[D", "article");
| definekey ("smart_cursleft", "h", "article");
| definekey ("smart_cursleft", "i", "article");
`----

You should check with other keybindings for consistency because hjkl
are used for other functions in the original bindings. I did this some
time ago, first to make slrn behave like tin, then to use hjkl instead
of cursor keys.


Ciao,
Ralf


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