I'd like to add in a filter on the articles command. A user can filter by a pattern, and saved articles with a title matching that pattern will appear. A couple considerations:
- Should it use the built-in glob, FTS5, or regex?
- Glob is native to SQLite and the shell. Regex is the format used by
grep
- Using regex in SQLite requires installing a 3rd party extension. Some options:
- FTS5 is a built-in module, very fast over large datasets, and also optimizes glob queries, but requires an extra virtual table https://www.sqlite.org/fts5.html
- Should it be called
--search, --filter, or --title?
- "Filter" makes more sense than "search", it's taking an existing list and filtering
- Given that you can search for a given blog with
--blog, --title may make the most sense, even though it's not an exact match. Also leaves room for adding in full-text content and scanning by content with --content
I'd like to add in a filter on the
articlescommand. A user can filter by a pattern, and saved articles with a title matching that pattern will appear. A couple considerations:grep--search,--filter, or--title?--blog,--titlemay make the most sense, even though it's not an exact match. Also leaves room for adding in full-text content and scanning by content with--content