-
Notifications
You must be signed in to change notification settings - Fork 3
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
Entry filters #6
Comments
It's nice to have regex, but also more simple filters like: Or even a little more OO: |
Right, filters like these should also make for better usablility. That raises the problem of filter UI, though. Any ideas? I'm not too big a fan of radio buttons and comboboxes like
I'd hate using those. How about a mini-Domain Specific Language (if you can call it that) with keywords
I'd still like to have regexes, though, because I really want that negative lookbehind assertion there. You never know. 🍻 |
Muhahaha! 👹 😻 |
NO PLEASE MAX! I'M SORRY, I DIDN'T MEAN TO! 🔫 Please don't invent YADSL. Can't you just go with a subset of Ruby commands? In python there's a module called ast, which parses python code for you and gives you the abstract tree syntax. This makes it very easy to restrict the language. There must be an equivalent in ruby. |
Hehehe. Yeah, after writing out that pseudo-grammar I didn't seriously consider doing that anymore. It's the nucular option! 💣 Using the Ruby parser like you suggest is a very interesting idea. For later reference, here's a link to look into: http://www.igvita.com/2008/12/11/ruby-ast-for-fun-and-profit/ . |
Some feeds regularly contain entries that are not very interesting. There should be per-feed filters for entries whose text matches a certain regex. Matches are automatically marked as read and also get a filtered (or filtered-by) attribute set.
Use case from the Github Blog:
/is a GitHubber!/
,/(?<!Berlin )Drinkup/
.The text was updated successfully, but these errors were encountered: