Article View: news.software.readers
Article #59278Re: [SLRN] Customizing
From: Sylvan Butler
Date: Thu, 16 Mar 2000 00:00
Date: Thu, 16 Mar 2000 00:00
77 lines
3297 bytes
3297 bytes
On Thu, 16 Mar 2000 01:19:24 +0100, Christian R Molls <CMolls@smail.uni-koeln.de> wrote:
>I would prefer a one-window, cursor-driven solution with the following
>key-bindings.
>
>When on the thread list:
><Cursor-Left> Change to group selection
><Cursor-Right> View an article full-screen (!!!)
><Cursor-Down> Article down
><Cursor-Up> Article up
>
>When viewing an article:
><Cursor-Left> Show thread list, current thread uncollapsed (!!!)
><Cursor-Right> Nop
><Cursor-Up> Scroll one line up
><Cursor-Down> Scroll one line down
You should be able to make slrn do that, but it gets a bit tricky...
I have mine set up mostly the mimic tin, with some vi thrown in. :)
So in "article mode" <j> and <k> scroll one line down and up, but on the
list of articles they go article down/up. I use <enter> to get to
"article mode" and <q> to get back to the list.
My functions to do this are the ones included with slrn in the
tin-art.sl macros. For example, tin_article_down :
define tin_article_down ()
{
if (is_article_visible ())
{
call ("article_linedn"); % spirit of tin anyway ;)
}
else
{
ERROR_BLOCK
{
_clear_error ();
header_bob ();
}
call ("down");
return;
}
}
definekey ("tin_article_down","j","article");
definekey ("tin_article_down","\e[B","article"); % down arrow
definekey ("tin_article_down","\eOB","article"); % down arrow
or tin_art_quit :
define tin_art_quit ()
{
if (is_article_visible ())
{
art_hide_article_window ();
return;
}
art_quit ();
}
definekey ("tin_art_quit", "q", "article");
The key is the test for "is_article_visible" which allows you to pretend
there is an article reading mode and a list of articles mode. You
should be able to customize these by changing the definekey to map to
your choice of keystrokes. You will need additional supporting
functions which are automatically included by the tin-*.sl's, so don't
expect to just use the above two functions standalone.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Technical Details
Message-ID:
<slrn8d2ipe.40l.nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid>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:
<ca9pa8.62d.ln@molls.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn8d2ipe.40l.nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid> Subject: Re: [SLRN] Customizing Date: Thu, 16 Mar 2000 00:00:00 +0000 From: nospam+_no_Zs__0003@hpb13799z.zboi.hpz.com.invalid (Sylvan Butler) References: <ca9pa8.62d.ln@molls.de> 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: 598457018 X-Original-NNTP-Posting-Host: hpb13799.boi.hp.com Mail-Copies-To: never X-Complaints-To: usenet@news.boi.hp.com X-Trace: hpbs1500.boi.hp.com 953241213 9774 15.98.137.41 (16 Mar 2000 21:13:33 GMT) Organization: Hewlett-Packard User-Agent: slrn/0.9.5.7 (Linux) NNTP-Posting-Date: 16 Mar 2000 21:13:33 GMT Newsgroups: news.software.readers