🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Slacker Sat, 29 Apr 2006 09:05
slrn: key customising
#184250
Author: Slacker
Date: Sat, 29 Apr 2006 09:05
24 lines
1870 bytes
I've been playing with some various setkey combos. I have <left> in
article view as extra quit key so I can exit back to group list quickly.
Similarly I have <right> bound to select_group in group view for the 
same idea.

Now I want to make <right> in article mode show article/post, but I
don't see where <space> and <enter> are bound in my .slrnrc file. Are
they hard-coded in for article view?

I've tried experimenting with various things like:

setkey article <command>      "<Right>"

and tried a few commands like display_article, read_article,
display_thread etc but can't find the right one.

Anyone help with this?

-- 
If you stick a stock of liquor in your locker,
It is slick to stick a lock upon your stock. 
	Or some joker who is slicker,
	Will trick you of your liquor,
If you fail to lock your liquor with a lock.
Re: slrn: key customising
#184253
Author: Peter J Ross
Date: Sat, 29 Apr 2006 12:52
46 lines
2445 bytes
On Sat, 29 Apr 2006 09:05:37 GMT, Slacker <dave@thevoid.com> wrote in
news.software.readers:

> I've been playing with some various setkey combos. I have <left> in
> article view as extra quit key so I can exit back to group list quickly.
> Similarly I have <right> bound to select_group in group view for the 
> same idea.
>
> Now I want to make <right> in article mode show article/post, but I
> don't see where <space> and <enter> are bound in my .slrnrc file. Are
> they hard-coded in for article view?

<space> is bound to article_page_down.
<return> is bound to article_line_down.

Both of these functions behave "intelligently" if no article is
displayed in the article pane.

> I've tried experimenting with various things like:
>
> setkey article <command>      "<Right>"
>
> and tried a few commands like display_article, read_article,
> display_thread etc but can't find the right one.
>
> Anyone help with this?

unsetkey article "<right>"
  and either
setkey article article_page_down "<right>"
  or
setkey article article_line_down "<right>"

You'll probably want a keybinding for article_right, since you're
using <right> for something else.

Note to anybody else trying this: some X terminal emulators, such as
Konsole, may over-ride cursor-key bindings.

PJR :-)
-- 
  _  _(o)_(o)_  _       FSM: http://www.venganza.org/
._\`:_ F S M _:' \_,    PJR: http://www.insurgent.org/~pjr/
    / (`---'\ `-.       AUK: http://www.netcabal.com/auk/
 ,-`  _)    (_,   F_P   God's Own Newsreader: http://www.slrn.org/
Re: slrn: key customising
#184258
Author: Slacker
Date: Sat, 29 Apr 2006 15:36
68 lines
4086 bytes
On 2006-04-29, Peter J Ross <pjr@kookbusters.org> put forth the proposition:
> On Sat, 29 Apr 2006 09:05:37 GMT, Slacker <dave@thevoid.com> wrote in
> news.software.readers:
>
>> I've been playing with some various setkey combos. I have <left> in
>> article view as extra quit key so I can exit back to group list quickly.
>> Similarly I have <right> bound to select_group in group view for the 
>> same idea.
>>
>> Now I want to make <right> in article mode show article/post, but I
>> don't see where <space> and <enter> are bound in my .slrnrc file. Are
>> they hard-coded in for article view?
>
><space> is bound to article_page_down.
><return> is bound to article_line_down.
>
> Both of these functions behave "intelligently" if no article is
> displayed in the article pane.
>
>> I've tried experimenting with various things like:
>>
>> setkey article <command>      "<Right>"
>>
>> and tried a few commands like display_article, read_article,
>> display_thread etc but can't find the right one.
>>
>> Anyone help with this?
>
> unsetkey article "<right>"
>   and either
> setkey article article_page_down "<right>"
>   or
> setkey article article_line_down "<right>"
>
> You'll probably want a keybinding for article_right, since you're
> using <right> for something else.
>
> Note to anybody else trying this: some X terminal emulators, such as
> Konsole, may over-ride cursor-key bindings.
>
> PJR :-)

Thanks for help. It's not perfect, but this is what I've come up
with:

setkey group "set_prefix_argument(1);call(\"select_group\")" "\n"      % These show
setkey group "set_prefix_argument(1);call(\"select_group\")" "^M"      % read threads
setkey group "set_prefix_argument(1);call(\"select_group\")" " "       %   "     "
setkey group "set_prefix_argument(1);call(\"select_group\")" "<Right>" %   "     "
setkey group quit                       "<Left>"        % Quit slrn

setkey article article_page_up          "<PageUp>"      % Scroll article up one page
setkey article article_page_down        "<PageDown>"    % Scroll article down one page
setkey article collapse_thread          ","             % Collapse threads
setkey article uncollapse_thread        "."             % Expand threads
setkey article article_line_up          "<Left>"        % Display thread/line up
setkey article article_line_down        "<Right>"       % Display thread/line down
setkey article article_left             "<esc><Left>"   % Pan article to the left
setkey article article_right            "<esc><Right>"  % Pan article to the right

I'm trying to emulate my Mutt bindings, where all navigating is made
with arrow keys.

-- 
One of the oldest problems puzzled over in the Talmud is: "Why did God
create goyim?"  The generally accepted answer is "________somebody has to buy
retail."
		-- Arthur Naiman, "Every Goy's Guide to Yiddish"
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