Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to filter entries based on keyword #1495

Open
DennisJDufrene opened this issue Jul 22, 2024 · 4 comments
Open

Add the ability to filter entries based on keyword #1495

DennisJDufrene opened this issue Jul 22, 2024 · 4 comments

Comments

@DennisJDufrene
Copy link

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
Copy link
Owner

Athou commented Jul 22, 2024

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
Copy link
Author

@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
Copy link

Crul commented Jul 23, 2024

@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
Copy link
Owner

Athou commented Aug 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants