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

Adding filters to `list`? #15

Open
goldcaddy77 opened this Issue Aug 6, 2017 · 17 comments

Comments

Projects
None yet
6 participants
@goldcaddy77

goldcaddy77 commented Aug 6, 2017

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?

@sachaos

This comment has been minimized.

Owner

sachaos commented Aug 7, 2017

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

@goldcaddy77

This comment has been minimized.

goldcaddy77 commented Aug 7, 2017

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

@jmburges

This comment has been minimized.

jmburges commented Aug 8, 2017

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

@sachaos sachaos added the enhancement label Aug 8, 2017

@sachaos

This comment has been minimized.

Owner

sachaos commented Aug 8, 2017

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.

@goldcaddy77

This comment has been minimized.

goldcaddy77 commented Aug 8, 2017

No worries - thanks for your work on the project 👍

@jmburges

This comment has been minimized.

jmburges commented Aug 8, 2017

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

@sachaos

This comment has been minimized.

Owner

sachaos commented Aug 9, 2017

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

This comment has been minimized.

Owner

sachaos commented Oct 4, 2017

@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

  • Boolean infix operator
  • Not operator
  • Due date
    • Specific date
    • Specific date and time
    • Relative date
      • today, tomorrow, yesterday
      • 3 days (due in the next 3 days)
      • -3 days (due in the past 3 days)
    • Days of the week
    • Due before
    • Due After
    • Over due
    • No date
    • Recurring
  • Priority
    • Specific priority
    • No priority
  • Label
    • Specific label
    • No label
  • Project
    • Project
    • Sub Project
  • Created
    • created on
    • created before
    • created after
  • Assigned
    • assigned to
    • assigned by
    • assigned
    • shared
  • Keyword search
  • multiple filters
@erikw

This comment has been minimized.

erikw commented Apr 4, 2018

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

@sachaos

This comment has been minimized.

Owner

sachaos commented Apr 13, 2018

OK, I'll implement this.

@coljac

This comment has been minimized.

coljac commented May 14, 2018

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?

@0atman

This comment has been minimized.

0atman commented Aug 22, 2018

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

@sachaos

This comment has been minimized.

Owner

sachaos commented Sep 25, 2018

I implemented project filter in #57

@0atman

This comment has been minimized.

0atman commented Sep 25, 2018

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

@0atman

This comment has been minimized.

0atman commented Sep 25, 2018

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

@sachaos

This comment has been minimized.

Owner

sachaos commented Sep 26, 2018

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

@0atman

This comment has been minimized.

0atman commented Sep 26, 2018

@sachaos it works! Thank you! <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment