🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #184258

Re: slrn: key customising

#184258
From: 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"
Technical Details
Message-ID: <slrne5720h.iik.dave@TheVoid.TheBlackPit.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!wns13feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!newsfeed.vmunix.org!news2.euro.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!pe1.news.blueyonder.co.uk!blueyonder!fe1.news.blueyonder.co.uk.POSTED!53ab2750!not-for-mail
References: <slrne56b33.d38.dave@TheVoid.TheBlackPit.com> <slrne56of2.bqm.pjr@nntp.alcatroll.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrne5720h.iik.dave@TheVoid.TheBlackPit.com>
Subject: Re: slrn: key customising
Date: Sat, 29 Apr 2006 15:36:45 GMT
From: Slacker <dave@thevoid.com>
References: <slrne56b33.d38.dave@TheVoid.TheBlackPit.com> <slrne56of2.bqm.pjr@nntp.alcatroll.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!wns13feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!newsfeed.vmunix.org!news2.euro.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!pe1.news.blueyonder.co.uk!blueyonder!fe1.news.blueyonder.co.uk.POSTED!53ab2750!not-for-mail
Newsgroups: news.software.readers
Organization: Disorganised
User-Agent: slrn/0.9.8.1 (Linux)
Lines: 68
NNTP-Posting-Host: 82.43.220.252
X-Trace: fe1.news.blueyonder.co.uk 1146325005 82.43.220.252 (Sat,
NNTP-Posting-Date: Sat, 29 Apr 2006 16:36:45 BST