aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser.go
Commit message (Collapse)AuthorAgeFilesLines
* Adds support to projects with hyphenRodrigo Dumont2017-03-251-2/+2
|
* Fix spacing bug when adding todosGrant Ammons2017-03-071-1/+1
| | | | All new todos would have a space in them. This fixes that.
* This commit removes all usages of github.com/jinzhu/now.DmitriyMV2017-03-041-13/+11
| | | | | | | | | 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.
* Support UTF-8 strings as contexts and projectsQuey-Liang Kao2017-01-261-5/+6
|
* New Feature: Expanding existing todosQuey-Liang Kao2017-01-211-0/+11
|
* Add more helpful messagesQuey-Liang Kao2017-01-211-7/+4
|
* Makes all output messages consistentQuey-Liang Kao2017-01-191-3/+11
| | | | | | | | | | | | | | | | | | | Since the panic() function provides overwhelming messages available for developers but meaningless to users, the way to deal with error output is simplified. There are two panic()'s that are fixed: * The one in parseArbitraryDateWithYear() function. This function is the possible endpoint of adding a todo or editing dues. Instead of calling panic(), now it outputs the specific parsing error, and then terminate itself by os.Exit(). * The one in formatDue() function This function is responsible for parsing the due information of a given todo. If the todos being added previously have passed the checking, then there is no reason that a due fails the format check here, except for the corruption of the todo file.
* Merge pull request #18 from NonerKao/masterGrant Ammons2017-01-181-2/+6
|\ | | | | Bugfix: "todo a" no longer adds an empty todo
| * Bugfix: "todo a" no longer adds an empty todoQuey-Liang Kao2017-01-161-2/+6
| |
* | Run gofmt on formatter and parserHuu Nguyen2017-01-161-2/+2
|/
* bugfix - use 'tod' as shorthand for todayGrant Ammons2016-09-081-1/+1
|
* Fix issue with parsing specific datesGrant Ammons2016-05-121-2/+3
|
* Parse out arbitrary datesGrant Ammons2016-05-061-13/+43
| | | | | | | | | | | | | | 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.
* Strip out a or addGrant Ammons2016-05-051-0/+2
|
* Allow editing due dates and setting it to noneGrant Ammons2016-05-041-0/+2
|
* Handle parsing dates, and printing themGrant Ammons2016-04-301-13/+60
|
* Rename method to describe it betterGrant Ammons2016-04-261-1/+1
|
* Organize things a bit betterGrant Ammons2016-04-241-0/+87