| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Rewrite the `ManipulateNotes` function into `HandleNotes`, which
routes the note sub-commands to calls of newly-written `Parse*Note`
functions. On successful parse, these functions return true, and
false otherwise.
Related tests are also refined.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
This patch introduce a new attribute of a todo item, which is
"Notes", of type []string. The following enhancing patches will
contain the listing, removing and editing features.
|
| |
|
|
|
| |
* 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
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will parse out dates in the format of "mon dd", the month being a 3
letter month, and the date being just the day.
due mar 10
due sep 25
due oct 2
it will also "intelligently" guess the year, based upon which is the
shorter duration from time.Now(). for instance, if today's date is dec
25 and you schedule an event for jan 2, it will schedule it for the
following year.
|
| | |
|
| |
|