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

Add date range filters for Completion/Due/Threshold dates #578

Open
DeflateAwning opened this issue Nov 10, 2023 · 8 comments
Open

Add date range filters for Completion/Due/Threshold dates #578

DeflateAwning opened this issue Nov 10, 2023 · 8 comments

Comments

@DeflateAwning
Copy link

Feature Request

Description:
Add date range filters for Completion/Due/Threshold dates

Implementation Details:

  • Have text input of the start and end, and maybe a slider
  • If only one end of the date range is filled, the other side of the filter should not affect the filter result (i.e., it should be assumed to be infinitely far in the future or past)
@visvital
Copy link

This request might be linked with #526, I suppose.

@github-project-automation github-project-automation bot moved this to Backlog in sleek 2.x Jan 15, 2024
Copy link

This is an automated response. We acknowledge your report, and we appreciate your engagement. However, as there has been no recent activity in this thread, it has been marked as stale. If you have any further feedback or if the matter is still relevant, please do not hesitate to respond. Otherwise, this thread will be automatically closed in 15 days from now.

@DeflateAwning
Copy link
Author

This issue should not be closed, and is still relevant

@ransome1
Copy link
Owner

@DeflateAwning @visvital I honestly don't understand what exactly the requirement here is and how it is compatible with the todo.txt syntax. Without a detailed feature request, I doubt anybody will want to work on it.

@DeflateAwning
Copy link
Author

I'll propose that, for each of the filters for date properties in the left filter pane (i.e., Due Date, Threshold Date, Completion Date, Creation Date), you could add a UI element like this example: https://demo.mobiscroll.com/jquery/range/date-filtering-with-predefined-ranges.

Then, it would filter the todos based on that date filter for that date field.

@ransome1
Copy link
Owner

Thanks @DeflateAwning, this makes it more clear to me.

In theory you can already utilize the advanced search for this: due: > 2024-02-26 && due: < 2024-03-12
Screenshot 2024-02-26 at 3 10 42 PM

This feature is described in detail here: https://github.com/ransome1/sleek/wiki/Filter-Expressions-for-Advanced-Search

What also might come in handy here, are the search filters: https://github.com/ransome1/sleek/wiki/Search-filters
Screenshot 2024-02-26 at 3 10 38 PM

Although not the solution you're describing yet, but certainly an alternative approach. A bit nerdy ;)

@ransome1
Copy link
Owner

Hey @zerodat. Can I ask you something? According to our wiki, this expression should work, right? due: > today && due: < today+1m

This should find todos with a due date between today and today in one month. Why does it not work for Todo due:2024-02-28 (if today is 2024-02-26). Is this a bug or am I not applying the syntax properly?

@DeflateAwning
Copy link
Author

Great point with the advanced filtering! I still think that this being part of the core GUI filtering is beneficial (especially given the unergonomic feel of the current date filter), but that's a good reminder that a workaround exists!

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

No branches or pull requests

3 participants