pimutils / todoman

✅ A simple, standards-based, cli todo (aka: task) manager.
https://todoman.readthedocs.io
ISC License
482 stars 76 forks source link

IN-PROCESS status #522

Open mstmob opened 1 year ago

mstmob commented 1 year ago

The "IN-PROCESS" status doesn't seem to be implemented and is not documented. Currently listing the in-process tasks (todo list -s IN-PROCESS) always returns a empty line. Expected behavior would be that all tasks with a start date set in the past are listed here.

Used version: todoman, version 4.2.1

WhyNotHugo commented 1 year ago

Expected behavior would be that all tasks with a start date set in the past are listed here.

Expected behavior is to list tasks where STATUS=IN-PROCESS.

I think you want --startable: "Show only todos which can be started today".

mstmob commented 1 year ago

Expected behavior would be that all tasks with a start date set in the past are listed here.

Expected behavior is to list tasks where STATUS=IN-PROCESS.

This makes sense, but how can I move a task into STATUS=IN-PROCESS? Is there some command I overlooked?

I think you want --startable: "Show only todos which can be started today".

Actually I wanted to get a list of "started/in-progress" tasks and I thought, that I could achieve this by setting a "start" date... But a start command would be fine as well.

WhyNotHugo commented 1 year ago

This makes sense, but how can I move a task into STATUS=IN-PROCESS?

There doesn't seem to be a command to do so. I guess the GUI in todo edit could have a line with the status and a switcher to change it.

Or todo edit could have a new flag --status to update the status.

But changing status is mostly limited to NEEDS-ACTION and IN-PROCESS right now through the done and undo workflows.

Keep in mind that not all fields can be edited with todoman, but if they're reflected and displayed because you might be synchronizing with a phone or some other device/client which does support editing them.

Actually I wanted to get a list of "started/in-progress" tasks and I thought, that I could achieve this by setting a "start" date... But a start command would be fine as well.

I've always used the start date with a slightly different meaning: to indicate that this tasks starts on a given date.

For example, if I have to do a tax declaration between the 1st and 30th of May, I'll create a todo with start=2023-05-01 and due=2023-05-01. So todo list --startable won't show me this todo before the 1st of May (since I cannot actually start it).

To be clear though, that's mostly me interpretation of it; there's nothing preventing you from using the start field with another meaning, but the --startable flag won't match your expectations.

There's also "progress" field, which goes between 0 and 100, but that one is also not editable right now. TBH, I'm pretty sure that what you want is the ability to edit status=IN-PROCESS.

mstmob commented 1 year ago

Thank you for the explanation!

TBH, I'm pretty sure that what you want is the ability to edit status=IN-PROCESS.

Yes, what I miss is the ability to edit/toggle the status to IN-PROCESS/NEEDS-ACTION.

I guess the GUI in todo edit could have a line with the status and a switcher to change it. Or todo edit could have a new flag --status to update the status.

Afaik in taskwarrior this was implemented by separate start and stop commands, but IMO a todo edit --status=IN-PROCESS and maybe a "IN-PROCESS" checkbox (or status drop-down) in the TUI would be perfect!

Maybe the "IN-PROCESS" tasks could also be marked as [o] or [-] (or something else) in the todo list?

There's also "progress" field, which goes between 0 and 100, but that one is also not editable right now.

Editing the "progress" field would be also nice but IMO this makes specially sense for tasks with subtasks...

I've always used the start date with a slightly different meaning: to indicate that this tasks starts on a given date.

I see the use case now. Haven't thought of this feature that way but makes definitely sense!