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

filters could support relative dates #16

Open
ianmorti opened this issue Apr 25, 2014 · 5 comments
Open

filters could support relative dates #16

ianmorti opened this issue Apr 25, 2014 · 5 comments
Assignees

Comments

@ianmorti
Copy link

This is an enhancement request.

It would be nice if I could add a filter for a relative date e.g. "due date is TODAY" or due date is less than 7 DAYS

Thanks.

@mjdescy mjdescy self-assigned this Apr 25, 2014
@mjdescy
Copy link
Owner

mjdescy commented Apr 25, 2014

That is a good idea. I will consider it for a future version.

It would require an additional custom filter predicate to be created, and that predicate would have to use my date helper class to avoid timezone issues.

@careyb
Copy link

careyb commented Apr 30, 2014

In the past I have done that using aText text replacement. I have also done it on the command line using egrep.

@mjdescy
Copy link
Owner

mjdescy commented Apr 30, 2014

I have been working on a custom filter predicate editor row template. It is a tricky operation to develop these filters, partly because the filters are saved in the user defaults and corrupt filters essentially break the app. Right now, my version of the app is broken, most likely because of these changes to the filters. That is definitely slowing me down! :-(

@dominicwa
Copy link

Any update on this request? If not, I'm tempted to crack open the source and help!

@mjdescy
Copy link
Owner

mjdescy commented Jun 23, 2016

There's no real update on this feature request. Predicate row editors are tricky to work with---that's the main reason no real work has been done on this. Assistance would be appreciated.

There are probably several ways to implement this. One simple way may be to create a predicate row template with several text options ("due this week", "due this month", or whatever) and then create computed properties in the TTMTask object that would evaluate to true/false for each of those named conditions. That's not exactly what was requested, but it is simpler than what is requested, and it might be a good start.

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

4 participants