On Thu, Mar 15, 2018 at 11:47:14AM -0700, Roman Vasin wrote:
>What I did today:
>I implemented another command: mark all articles from the beginning until
>current article as read. I assigned it "a" key.
>So it may do the job for me.
>I will create a pull request maybe tomorrow.
Looking forward to it!
>What is not clear for me:
>For example I have 2000 read articles.
>I want to delete and purge all these read articles in feed.
>How can I do that?
>It seem like I need to implement new command: delete all read articles in
>feed.
Please, please read the documentation before coming up with new commands
and options. We have delete-read-articles-on-quit already, which is
pretty close to what you want:
https://newsboat.org/releases/2.10.2/docs/newsboat.html#delete-read-articles-on-quit
>>Page Up and Page Down aren't handled by Newsboat—they're processed by
>STFL, a library we're using for the user interface. So there's no place
>in our code where you can add code that'll be executed when user presses
>Page Up or Page Down.
>
>It still not clear for me now the articles are scrolled. Which code in
>newsboat displays the current page articles.
There's no such code in Newsboat itself—the scrolling is taken care of
by STFL. We create the whole list at once in
itemlist_formaction::do_update_visible_items(), give it to STFL in
itemlist_formaction::prepare() (itemlist_formaction.cpp:719), and STFL
does the "pagination" for us. Does that answer your question?