| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
* the `hasDue` function was not running, and therefore it was not parsing the due date.
* Also added the beginnings of a more holistic test approach, using `app_test.go`.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
* Test editing a todo with just a due date does not affect subject
* Test editing a todo with just subject does not affect due date
* Editing a subject should also update projects and contexts
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows a unified edit functionality that supports the following:
**`t e 25 due tom`**
* Edits the due date
* Leaves subject, projects and contexts unchanged
**`t e 25 take out the trash with @bob`
* Updates the subject, projects and contexts
* Leaves the due date unchanged
**`t e 25 take out the trash with @bob due tom`
* Updates the subject, projects and contexts
* Updates the due date
**What's missing**
* Tests that exercise this functionality
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
This is useful for those who need a report of entries from last week.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
`CompletedDate` will save a timestamp in ISO8601 format (Internet date/
time format to preserve timezone information)
Added a new `Complete` and `Uncomplete` method for todo_item.
Currently a todo has a boolean flag and the timestamp to indicate that
the item is completed. The boolean flag could be kept for backward
compatibility (reading the json into memory), but should be omitted for
files being written.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This patch implements the logic discussed at #31, in which
the program still tries to find a repo file in the working directory
first, and it tries the global one in the home directory if no one
is found.
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
Fix spacing bug when adding todos
|
| | |
| |
| |
| | |
All new todos would have a space in them. This fixes that.
|
| |\| |
|
| | |\
| | |
| | | |
Remove github.com/jinzhu/now.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
github.com/jinzhu/now has numerous errors handling date and time. The example's of them are:
1. Incorrect handling of DST (https://github.com/jinzhu/now/issues/13).
2. 24 Hour long days (https://stackoverflow.com/questions/25254443/return-local-beginning-of-day-time-object-in-go) Chicago has 23, 24, or 25 hours in a day.
3. Incorrect usage of time.Truncate which can return time with a non-zero minute, depending on the time's Location. (https://github.com/golang/go/issues/16647).
There are other issues as well, including getting incorrect beginning and end of the month.
|
| | |\ \
| | | |
| | | | |
Fix agenda bug
|
| | | |/
| | |
| | |
| | | |
Previously, running `todo agenda` was also listing todos with no due date. Now, it won't do that.
|
| | |\ \
| | | |
| | | | |
Add priority feature
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | | |
Now, todos have a priority flag. When listed, these todos will be
bolded and italic.
You can list todos by priority by running `todolist l p`.
|
| | | | |
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch implments the new workflow mentioned in #31, in which
the program still tries to find a repo file in the working directory
first, and it tries the global one in the home directory if no one
is found.
In this patch, the condition check of the existence of the repo file
is done in `todolist/file_store.go` at the very early step before
the input routing.
|
| | | |
|
| |/
|
|
|
| |
* Add `todo gc`, which will delete all archived todos.
* `NextId` will now take the first available id, rather than just the MaxId + 1.
|
| |\
| |
| | |
Correct message on "todo ac"
|
| | | |
|