todoist
todoist copied to clipboard
Adding filters to `list`?
Hi, have you thought about adding filters to list
so that you could query for just p4
tasks or filtering by name? Or do you just expect that people will filter using the command line?
@goldcaddy77 Yeah, you are right. Initially, I thought that using grep was enough. However, recently I think that filter option will make this more useful. What do you think?
I think it would be a nice addition. Anybody else?
Definitely worth it! The biggest one being date based filters.
Thank you for your opinion. I'm happy. It's nice using official filter query syntax. https://support.todoist.com/hc/en-us/articles/205248842-Filters
I want to implement this as soon as possible. But now, I'm busy with my day job, so it may take a while.
No worries - thanks for your work on the project 👍
Agreed! I know some go...Maybe I'll give it a shot :)
PR welcome!
I would like to implement the filter feature by parsing the received filter query, converting it to AST, and evaluating if the item matches the query. We are also looking for other methods of implementation.
@goldcaddy77 @jmburges Sorry for being late.
I implemented some filter functions in v0.10.0
. Try it! :+1:
# e.g. list overdue and priority 3 tasks
$ todoist list --filter "overdue & p3"
But some functions are WIP. Todo list is below.
Based on: https://support.todoist.com/hc/en-us/articles/205248842-Filters
- [X] Boolean infix operator
- [x] Not operator
- [ ] Due date
- [X] Specific date
- [X] Specific date and time
- [ ] Relative date
- [X] today, tomorrow, yesterday
- [ ] 3 days (due in the next 3 days)
- [ ] -3 days (due in the past 3 days)
- [ ] Days of the week
- [X] Due before
- [X] Due After
- [X] Over due
- [X] No date
- [ ] Recurring
- [ ] Priority
- [X] Specific priority
- [ ] No priority
- [x] Label
- [x] Specific label
- [x] No label
- [x] Project
- [x] Project
- [x] Sub Project
- [ ] Created
- [ ] created on
- [ ] created before
- [ ] created after
- [ ] Assigned
- [ ] assigned to
- [ ] assigned by
- [ ] assigned
- [ ] shared
- [ ] Keyword search
- [ ] multiple filters
I think filter by Project should be prioritized, it's the filter I would use the most often!
OK, I'll implement this.
Hi there - the bit missing for my use here is the "next X days" option. If you revisit this, please consider making this high in the priority list.
Is it a limitation of the todoist api that the filter queries can't be passed back to the server?
just a note that I missed filtering by @labels
today
Thanks! <3
I implemented project filter in https://github.com/sachaos/todoist/pull/57
Amazing! Thank you :-) Going to re-install and play around
oh, not @labels
yet? not to worry - thank you for project filtering!
@0atman I implemented label filter in #58 (v0.12.0). Please try it!
@sachaos it works! Thank you! <3
Not sure if this is the right place to ask, but is wildcard supported? For example, @home* to filter labels with homework and home?
Try it out, then if it doesn't work, raise a separate issue?
On Tue, 25 Jun 2019, 13:45 Adam Lee, [email protected] wrote:
Not sure if this is the right place to ask, but is wildcard supported? For example, @home* to filter labels with homework and home?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sachaos/todoist/issues/15?email_source=notifications&email_token=AAA33MLI5J2PBUTQYP5W7CDP4IHNHA5CNFSM4DV2PUR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYQDQUA#issuecomment-505428048, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA33MNVZED3UUIVWOLOHALP4IHNHANCNFSM4DV2PURQ .
Looks like this can be closed as it was resolved in #58?
Edit:
@kenliu Could we mark this one was resolved?
Keyword search would be really helpful. Any chance to implement it?
Keyword search would be really helpful. Any chance to implement it?
@nabaco please make another issue regarding this
opened #191
Looks like this can be closed as it was resolved in #58?
Came here to say this 🎉
This is fantastic @sachaos , but is this tickbox list maintained anywhere? I assume it's out of date by now?
@goldcaddy77 @jmburges Sorry for being late. I implemented some filter functions in
v0.10.0
. Try it! 👍# e.g. list overdue and priority 3 tasks $ todoist list --filter "overdue & p3"
But some functions are WIP. Todo list is below.
Based on: https://support.todoist.com/hc/en-us/articles/205248842-Filters
- [x] Boolean infix operator
- [x] Not operator
- [ ] Due date
- [x] Specific date
- [x] Specific date and time
- [ ] Relative date
- [x] today, tomorrow, yesterday
- [ ] 3 days (due in the next 3 days)
- [ ] -3 days (due in the past 3 days)
- [ ] Days of the week
- [x] Due before
- [x] Due After
- [x] Over due
- [x] No date
- [ ] Recurring
- [ ] Priority
- [x] Specific priority
- [ ] No priority
- [x] Label
- [x] Specific label
- [x] No label
- [x] Project
- [x] Project
- [x] Sub Project
- [ ] Created
- [ ] created on
- [ ] created before
- [ ] created after
- [ ] Assigned
- [ ] assigned to
- [ ] assigned by
- [ ] assigned
- [ ] shared
- [ ] Keyword search
- [ ] multiple filters
@shanness Yes, I think it's outdated.