Article View: news.software.readers
Article #54582Default to collapsed threads, it's easy!
From: Chris Green
Date: Fri, 26 Nov 1999 00:00
Date: Fri, 26 Nov 1999 00:00
46 lines
1945 bytes
1945 bytes
After the long previous thread on this subject I've been slowly
working away at customising my .slrnrc and it turns out to be very
easy to write a S-Lang function to default to collapsed thread display
when reading articles in a thread.
Starting from the tin_art_next_unread_or_group () function in
tin-art.sl all one has to do is add a call to execute
toggle_collapse_threads at the end of the function. Thus I have:-
define tin_art_next_unread_or_group ()
{
if (get_header_flags () & HEADER_READ)
{
!if (header_next_unread ())
{
header_bob ();
if (get_header_flags () & HEADER_READ)
{
!if (header_next_unread ())
{
!if (is_article_visible ())
{
return;
}
art_hide_article_window ();
return;
}
}
}
}
art_select_article ();
toggle_collapse_threads ();
}
definekey ("tin_art_next_unread_or_group", "\t", "article");
Now, when I hit TAB I don't get the thread expanded in the article
list - bliss! :-)
(You need to define the toggle_collapse_threads() function in util.sl
of course, or use 'call' instead)
--
Chris Green (chris@x-1.net)
Technical Details
Message-ID:
<slrn83t7kr.s70.cgreen@shell.x-1.net>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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn83t7kr.s70.cgreen@shell.x-1.net> Subject: Default to collapsed threads, it's easy! Date: Fri, 26 Nov 1999 00:00:00 +0000 From: cgreen@shell.x-1.net (Chris Green) 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: 553316313 X-Complaints-To: abuse@easynet.net X-Trace: quince.news.easynet.net 943628012 8168 212.134.96.150 (26 Nov 1999 14:53:32 GMT) Organization: [posted via Easynet Ltd] User-Agent: slrn/0.9.5.7 (UNIX) NNTP-Posting-Date: 26 Nov 1999 14:53:32 GMT Newsgroups: news.software.readers