Tags or categories to organize feeds
As mentioned in #34, there is a need for feeds to be organized by tags.
I have many feeds on different topics and I do not remember the exact name of every feed. If the config allowed the listing of multiple tags and the filtering took those into account, the searching would be more efficient.
Also the navigation would be aided if the tags would be treated like directories where the user has to enter to see the feeds.
I was thinking about this while I was working on #123
After I push up that PR, can I take this one @guyfedwards?
Yea of course, thanks @GV14982. Might be worth laying out your thoughts here before piling into it 👌
To add to this just thinking about it, I think there is two parts to this:
- Adding tags to config and allowing filtering/searching by tag
- Adding an alternative list view where you just see tags and then selecting a tag takes you into a pre-filtered list of articles for the selected tag.
1 is pretty straightforward, 2 might require some discussion as to the best UI/UX for this and how we want to structure it
@guyfedwards yeah I think this makes sense. Should we split into 2 different PRs? We would also need to unflatten the current import logic (Right now it just skips category/folder and recursively gets outlines).
To clarify 1: would we also want like a modal or popup for adding a tag to a feed? And in that same view allow for creating a new tag to add to a field?
Hmm. I wonder if first pass we can purely have tags as a config defined thing that will be parsed on load of the config and kept in memory instead of having to manage them as an entity in the DB. There are pros/cons to each approach but keeping it simple initially might be best?
- url: https://dropbox.tech/feed
name: dropbox
tags: tech, engineering
Then adding a tags search to https://github.com/guyfedwards/nom/blob/master/internal/commands/filter.go to allow searching with t: tech or tag:tech.
Finally a tag search view which might be good as just the list of tags. For example you are on the 'articleList' view, press t (this aligns with newsboat keybind which is a good start) and the list becomes 'tagList' view with the usual navigation keybinds, and then selecting one would tag you to the article list with only articles from feeds matching those tags.
What are your thoughts on this? Does that sound logical 🤔
Yeah I think that could work pretty well! It would keep things pretty simple for now and can be iterated on later. Feel free to assign me this issue and I'll work on it this week.