ultralist icon indicating copy to clipboard operation
ultralist copied to clipboard

Defer vs Due Dates

Open LalitMaganti opened this issue 4 years ago • 3 comments

Just stumbled across this project and seems really neat! So for context, my task manager of choice right now is OmniFocus (thought that's lapsed a bit because of not travelling for work meaning I don't need the power it provides); OmniFocus has a great GTD implementation but it's limited to the Apple ecosystem and I use Android as a daily driver. Because of this I'm always looking around for alternatives.

OF has this concept of "defer dates". These are similar to due dates but instead of being the day something should be completed by, it indicates the first time you want to even see the task appear in anywhere in the UI unless you're explicitly looking at a view which shows you deferred tasks. This is the absolute killer feature for me as I don't like seeing tasks I can't complete right now show up so I make extensive use of this feature.

I was wondering if this is something which has been considered for ultralist? If there's interest in including this feature, it's something I wouldn't mind contributing :)

LalitMaganti avatar Jul 09 '20 17:07 LalitMaganti

HI @tilal6991 !

I like the idea! We could add a deferUntil date to the todoItem model:

https://github.com/ultralist/ultralist/blob/262c676ca669382f02559ac0905f075ed6267635/ultralist/todo_item.go#L12-L24

The main thing would be coming up with a syntax that's really intuitive to defer/undefer todo items, and to list them.

A few things come to mind:

ultralist defer 35 until jul 20
ultralist defer 35 until 20 jul
ultralist undefer 35

If you're going to dive into the code, you'll find that ultralist is fairly easy to work with. Check out the cmd package for how to add defer. It will be very similar to prioritizing or archiving.

For listing, we could implicitly include not:deferred, unless you explicitly say is:deferred.

ultralist list is:deferred

See my latest PR for how filters work.

Let me know what you think!

gammons avatar Jul 09 '20 17:07 gammons

Just wanted to provide a bit of an update on this: I did take a look at this but I wanted to wait for your refactor to land and settle before I looked more. I then got pulled into other things so haven't had much time to check back here.

I may come back to this at some point but if someone else wants to take a look at this in the meantime, that would be great too :)

LalitMaganti avatar Aug 03 '20 12:08 LalitMaganti

Hi @tilal6991 sure, no worries. I might be able to get to this as well, although I'm knee deep in writing a cool TUI for ultralist using the https://github.com/rivo/tview library.

gammons avatar Aug 03 '20 14:08 gammons