todoist icon indicating copy to clipboard operation
todoist copied to clipboard

Adding filters to `list`?

Open goldcaddy77 opened this issue 6 years ago • 23 comments

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 avatar Aug 06 '17 03:08 goldcaddy77

@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?

sachaos avatar Aug 07 '17 16:08 sachaos

I think it would be a nice addition. Anybody else?

goldcaddy77 avatar Aug 07 '17 18:08 goldcaddy77

Definitely worth it! The biggest one being date based filters.

jmburges avatar Aug 08 '17 08:08 jmburges

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.

sachaos avatar Aug 08 '17 16:08 sachaos

No worries - thanks for your work on the project 👍

goldcaddy77 avatar Aug 08 '17 19:08 goldcaddy77

Agreed! I know some go...Maybe I'll give it a shot :)

jmburges avatar Aug 08 '17 20:08 jmburges

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.

sachaos avatar Aug 09 '17 00:08 sachaos

@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

sachaos avatar Oct 04 '17 12:10 sachaos

I think filter by Project should be prioritized, it's the filter I would use the most often!

erikw avatar Apr 04 '18 22:04 erikw

OK, I'll implement this.

sachaos avatar Apr 13 '18 03:04 sachaos

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?

coljac avatar May 14 '18 04:05 coljac

just a note that I missed filtering by @labels today Thanks! <3

0atman avatar Aug 22 '18 15:08 0atman

I implemented project filter in https://github.com/sachaos/todoist/pull/57

sachaos avatar Sep 25 '18 18:09 sachaos

Amazing! Thank you :-) Going to re-install and play around

0atman avatar Sep 25 '18 21:09 0atman

oh, not @labels yet? not to worry - thank you for project filtering!

0atman avatar Sep 25 '18 21:09 0atman

@0atman I implemented label filter in #58 (v0.12.0). Please try it!

sachaos avatar Sep 26 '18 02:09 sachaos

@sachaos it works! Thank you! <3

0atman avatar Sep 26 '18 08:09 0atman

Not sure if this is the right place to ask, but is wildcard supported? For example, @home* to filter labels with homework and home?

adam-lee avatar Jun 25 '19 12:06 adam-lee

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 .

0atman avatar Jun 25 '19 13:06 0atman

Looks like this can be closed as it was resolved in #58?

Edit:

@kenliu Could we mark this one was resolved?

HacDan avatar Jun 02 '22 00:06 HacDan

Keyword search would be really helpful. Any chance to implement it?

nabaco avatar Aug 02 '22 09:08 nabaco

Keyword search would be really helpful. Any chance to implement it?

@nabaco please make another issue regarding this

0atman avatar Aug 02 '22 10:08 0atman

opened #191

nabaco avatar Aug 02 '22 17:08 nabaco

Looks like this can be closed as it was resolved in #58?

Came here to say this 🎉

otakup0pe avatar Jan 17 '23 22:01 otakup0pe

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 avatar Sep 03 '23 05:09 shanness

@shanness Yes, I think it's outdated.

sachaos avatar Sep 03 '23 05:09 sachaos