Article View: news.software.readers
Article #37847Re: SLRN macro
From: Rob Funk
Date: Fri, 02 Jan 1998 00:00
Date: Fri, 02 Jan 1998 00:00
45 lines
2039 bytes
2039 bytes
Gossamer <gossamer+usenet@tertius.net.au> wrote:
>I'm trying to match up the keystrokes in my SLRN and Mutt
>because they look so alike my fingers keep getting confused :)
Me too, though I also add elements of trn (and elm).
>One of the things I need is a macro I can bind to lowercase q
>in article mode - if there's an article currently being shown
>then it should just hide article and stay in article mode,
>if there's no article being shown, it should -then- revert
>back to group mode.
I've just started with slrn macros, but having just fixed
pageup/pagedown to call scroll_up/dn or pageup/dn depending on whether
the article is visible, this one's easy:
define quit_or_hide_article ()
{
if (is_article_visible()) {
call ("hide_article");
} else {
call ("quit");
}
}
definekey("quit_or_hide_article", "q", "article");
I also do this:
define really_hide_article ()
{
% hide_article shouldn't be a toggle IMHO, but it is...
if (is_article_visible()) {
call ("hide_article");
}
}
definekey("really_hide_article", "i", "article");
--
=========== R o b F u n k ===========|===========> funk+@osu.edu <===========
"Why are you here? Snap out of it. | rfunk@peri.acs.ohio-state.edu
Wake up. It's all illusions." | rfunk@marvin.uts.ohio-state.edu
"I LIKE THE MOVIE" -- Richard Bach |http://er4www.eng.ohio-state.edu/~funkr
Technical Details
Message-ID:
<slrn6aq8ln.roq.rfunk@nyssa.acs.ohio-state.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-mailReferences:
<slrn6apl6f.43t.gossamer+usenet@penguin.glasswings.com.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn6aq8ln.roq.rfunk@nyssa.acs.ohio-state.edu> Subject: Re: SLRN macro Date: Fri, 02 Jan 1998 00:00:00 +0000 From: rfunk@peri.acs.ohio-state.edu (Rob Funk) References: <slrn6apl6f.43t.gossamer+usenet@penguin.glasswings.com.au> 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: 312163797 Organization: The Ohio State University / University Technology Services Newsgroups: news.software.readers