Re: Query next article - feature suggestion
Andrew <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 29 Jul 2006 18:19:32 -0500, J.B. Nicholson-Owens <[email protected]> wrote: > This macro file defines a function which will run when you hit the > spacebar (the default keybinding for the article_page_down intrinsic > function. If you set the query_next_article variable to whatever you > prefer for articles too long to read all at once, this function will > reset that variable to 1 when you press spacebar on an article you're > reading in its entirety. The query_next_article setting you chose > will be reset before this macro stops running, so your other macros > and preferences should not be disturbed by using this macro. Hello J.B., I've tried to make a couple of small changes to your excellent macro. Since I don't know SLANG, I hope I didn't mess too many things up. I changed line 9 (see attached diff file) in order to preserve the ability to enter a group by pressing the spacebar. Similarly, line 14 was changed to allow for opening an article by pressing the spacebar. I'm also experimenting with having Slrn prompt me only in the worst case: the article is exactly the same lines as the window so I don't have the final tilde(s) ~ as a visual clue. I did this by changing line 23. To my utmost amazement, the changes seem to work so far. Please do let me know what you think, though. Cheers, Andrew ----- BEGIN DIFF FILE ----- 9c9 < if (is_group_mode ()) { return; } --- > if (is_group_mode ()) { return call (select_group()); } 14c14 < if (_is_article_visible () != 3) { return; } --- > if (_is_article_visible () != 3) { return call ("article_bob"); } 23c23 < if (article_count_lines () > get_article_window_size ()) { return call (_function_name ()); } --- > if (article_count_lines () != get_article_window_size ()) { return call (_function_name ()); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV