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

do: no safeguard to do twice #3

Closed
ginatrapani opened this issue Apr 25, 2009 · 2 comments
Closed

do: no safeguard to do twice #3

ginatrapani opened this issue Apr 25, 2009 · 2 comments

Comments

@ginatrapani
Copy link
Member

If by accident you repeat @todo.sh do@ twice on the same task, this should be ignored but instead we have:

$ t add test
TODO: 'test' added on line 114.
$ t do 114
114: x 2009-03-21 test
TODO: 114 marked as done.
$ t do 114
114: **x 2009-03-21 x 2009-03-21** test
TODO: 114 marked as done.
@the1ts
Copy link
Contributor

the1ts commented Aug 29, 2009

Fixed in the below commit.
http://github.com/the1ts/todo.txt-cli/commit/7baf05194211f5a67a8b9aff94955c2e096f38b7

Using the same regex used to find items for archiving, this tests if the item is marked as done before allowing the item to be marked as done.

@ginatrapani
Copy link
Member Author

Merged, thank you!!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants