Article View: news.software.readers
Article #61755Re: slrn key bindings
From: Ralf Arens
Date: Mon, 22 May 2000 00:00
Date: Mon, 22 May 2000 00:00
54 lines
2631 bytes
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
Technical Details
Message-ID:
<1k1bg8.uh1.ln@ralf.dyndns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8i632i.8skk1.cera@phu863.um.us.sbphrd.com> <slrn8i708q.qkn.bluemoon@ux6.cso.uiuc.edu> <slrn8i8a4g.8tcc7.cera@phu863.um.us.sbphrd.com> <slrn8i8lsm.t8b.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <1k1bg8.uh1.ln@ralf.dyndns.org> Subject: Re: slrn key bindings Date: Mon, 22 May 2000 00:00:00 +0000 From: ralf.arens@tu-clausthal.de (Ralf Arens) References: <slrn8i632i.8skk1.cera@phu863.um.us.sbphrd.com> <slrn8i708q.qkn.bluemoon@ux6.cso.uiuc.edu> <slrn8i8a4g.8tcc7.cera@phu863.um.us.sbphrd.com> <slrn8i8lsm.t8b.bluemoon@ux6.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 625793061 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-Complaints-To: news@rz.tu-clausthal.de X-Trace: ariadne.rz.tu-clausthal.de 958991554 39619 139.174.6.35 (22 May 2000 10:32:34 GMT) Organization: Clausthal University of Technology Mime-Version: 1.0 User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Date: 22 May 2000 10:32:34 GMT Newsgroups: news.software.readers