Closed lamyergeier closed 10 months ago
I think part of that is already possible using Newsboat's filter language.
It is possible to filter the feedlist by the number of unread articles in a feed by using the unread_count
attribute in a filter, e.g.:
define-filter "minimal-unread" "unread_count >= 3"
run-on-startup select-filter "minimal-unread"
The second part (filtering on last entry publish date) is probably not possible at this moment.
We do have a feeddate
attribute but it looks like that is an absolute date.
It might make sense for us to implement an attribute for feeds called last_article_age
which works similar to the age
attribute available on individual articles.
As a side note, the Newsboat documentation has been updated quite a bit since version 2.19 so it might be nice to update the link at 2.
to point to the latests version 2.33: https://newsboat.org/releases/2.33/docs/newsboat.html or to a locally installed version. In my case that would be in /usr/share/doc/newsboat/
, linked to using file:///usr/share/doc/newsboat/newsboat.html
As a side note, the Newsboat documentation has been updated quite a bit since version 2.19 so it might be nice to update the link at
2.
to point to the latests version 2.33: https://newsboat.org/releases/2.33/docs/newsboat.html or to a locally installed version. In my case that would be in/usr/share/doc/newsboat/
, linked to usingfile:///usr/share/doc/newsboat/newsboat.html
May be we could have a url always pointing to latest documentation version: https://newsboat.org/releases/latest/docs/newsboat.html
I've just opened a pull request with an implementation for a "days since most recent article" attribute. If/when that is released, you can use the following config to apply the requested feed filtering:
define-filter "minimal-unread" "unread_count >= 3 or latest_article_age >= 7"
run-on-startup select-filter "minimal-unread"
We are currently in the stabilization period of a release, so merging the PR might be postponed for a while.
May be we could have a url always pointing to latest documentation version: https://newsboat.org/releases/latest/docs/newsboat.html
We have an issue tracking such a request: https://github.com/newsboat/newsboat/issues/2535 I expect that will be implemented sometime, but I don't think I myself have access to the website configuration.
Newsboat version (copy the output of
newsboat -v
or the first line ofgit show
):Newsboat 2.33.0 System: Linux 6.5.10-300.fc39.x86_64 (x86_64) Compiler: g++ 11.4.0 ncurses: ncurses 6.4.20221231 (compiled with 6.4) libcurl: libcurl/8.5.0 OpenSSL/3.2.0 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 libssh2/1.11.0 nghttp2/1.58.0 librtmp/2.3 OpenLDAP/2.6.6 (compiled with 8.3.0) SQLite: 3.44.2 (compiled with 3.43.1) libxml2: compiled with 2.11.5
Config file (copy from ~/.newsboat/config or ~/.config/newsboat/config):
Request
I am trying to overcome my addiction of having to frequently check newsboat. Could you please provide a setting in config that could control how unread feeds are shown with following conditions:
For my case I would like to to see feed only if there are atleast 3 new entries or last entry was more than a week ago (for feeds that are not updated very frequently). I hope that this will decrease the number of results shown in the newsboat and can be very helpful.