ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.29k stars 99 forks source link

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

Open DeflateAwning opened 8 months ago

DeflateAwning commented 8 months ago

Feature Request

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

Implementation Details:

visvital commented 7 months ago

This request might be linked with https://github.com/ransome1/sleek/issues/526, I suppose.

github-actions[bot] commented 4 months ago

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 commented 4 months ago

This issue should not be closed, and is still relevant

ransome1 commented 4 months ago

@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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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!