Athou / commafeed

Google Reader inspired self-hosted personal RSS reader.
https://www.commafeed.com
Apache License 2.0
2.8k stars 376 forks source link

Add the ability to filter entries based on keyword #1495

Closed DennisJDufrene closed 2 weeks ago

DennisJDufrene commented 3 months ago

Is your feature request related to a problem? Please describe. It would be useful to have the ability to filter out entries with specific keywords in the title. I still want feeds from a specific site, but I do not want specific articles.

Describe the solution you'd like In the setting section, after the profile tab, add a Filters tab. When clicked it provides a page with a button, Add Filter. Clicking Add Filter provides text box to enter keywords that will filter based on title and description. See Mastodon as an example:

Example

Describe alternatives you've considered I have tried both Javascript and Css without a working solution.

Additional context Add any other context or screenshots about the feature request here.

Athou commented 3 months ago

There is a "filtering expression" option on the settings page of each feed, is that what you're looking for?

332414317-cbdf0a0c-9b06-484f-a462-f4bb5e353242

DennisJDufrene commented 3 months ago

@Athou Thanks for the follow up

Sort of, but on the global level where the user would not have to edit each individual feed. Also, as a side note, title filtering on feed title may not work or I may not understand how it works. When I set title.contains('wwe') or `title.contains('WWE') those entries are not filtered. Even after refresh or fetch all.

Crul commented 3 months ago

@DennisJDufrene See this other comment on how to modify entries on the client side with Tampermonkey-style plugins. It can also be used to execute global filters, Instead of (or in addition to) data.entries = data.entries.map(processEntry); you would need something like data.entries = data.entries.filter(filterEntry);

Athou commented 2 months ago

When I set title.contains('wwe') or `title.contains('WWE') those entries are not filtered. Even after refresh or fetch all.

Sorry I forgot to reply to your comment. The filter only applies to new entries, the filter is not applied to existing entries.

stale[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.