-
|
When I mistakenly change the item status to done, is there any way to recover? For example, $ todo.sh add test
=> 4 test
TODO: 4 added.
$ todo.sh done 4
$ todo.sh listall
=> 0 x 2025-10-11 testExcept for creating the same task again, is there any way to recover |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You seem to have auto-archiving enabled, so a done task is automatically moved from (There's no numbering of the archived tasks; you need to obtain the task number by manually counting (eh) or (better) from the This turns the undo into a single command that just removes the done marker and done date: A custom action (like my undo) can simplify this even further: |
Beta Was this translation helpful? Give feedback.
You seem to have auto-archiving enabled, so a done task is automatically moved from
todo.txttodone.txt. Therefore, the first step is to move the task back:(There's no numbering of the archived tasks; you need to obtain the task number by manually counting (eh) or (better) from the
DONE: 2 of 2 tasks shownline of thelistalloutput.)If you disable auto-archiving (
export TODOTXT_AUTO_ARCHIVE=0intodo.cfg), done tasks aren't automatically moved and instead you need to occasionally clean up the task list viatodo.sh archive. I like this configuration because you'll have all recently done tasks still close by, and the explicit archiving (e.g. every weeke…