Skip to content
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

Closed
goldcaddy77 opened this issue Aug 6, 2017 · 26 comments
Closed

Adding filters to list? #15

goldcaddy77 opened this issue Aug 6, 2017 · 26 comments

Comments

@goldcaddy77
Copy link

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
Copy link
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
Copy link
Author

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

@jmburges
Copy link

jmburges commented Aug 8, 2017

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

@sachaos
Copy link
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
Copy link
Author

No worries - thanks for your work on the project 👍

@jmburges
Copy link

jmburges commented Aug 8, 2017

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

@sachaos
Copy link
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
Copy link
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
Copy link

erikw commented Apr 4, 2018

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

@sachaos
Copy link
Owner

sachaos commented Apr 13, 2018

OK, I'll implement this.

@coljac
Copy link

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
Copy link

0atman commented Aug 22, 2018

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

@sachaos
Copy link
Owner

sachaos commented Sep 25, 2018

I implemented project filter in #57

@0atman
Copy link

0atman commented Sep 25, 2018

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

@0atman
Copy link

0atman commented Sep 25, 2018

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

@sachaos
Copy link
Owner

sachaos commented Sep 26, 2018

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

@0atman
Copy link

0atman commented Sep 26, 2018

@sachaos it works! Thank you! <3

@adam-lee
Copy link

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

@0atman
Copy link

0atman commented Jun 25, 2019 via email

@HacDan
Copy link
Contributor

HacDan commented Jun 2, 2022

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

Edit:

@kenliu Could we mark this one was resolved?

@nabaco
Copy link

nabaco commented Aug 2, 2022

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

@0atman
Copy link

0atman commented Aug 2, 2022

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

@nabaco please make another issue regarding this

@nabaco
Copy link

nabaco commented Aug 2, 2022

opened #191

@otakup0pe
Copy link

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

Came here to say this 🎉

@kenliu kenliu closed this as completed May 8, 2023
@shanness
Copy link

shanness commented Sep 3, 2023

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

  • 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

@sachaos
Copy link
Owner

sachaos commented Sep 3, 2023

@shanness Yes, I think it's outdated.

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

No branches or pull requests