aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser.go
Commit message (Collapse)AuthorAgeFilesLines
* 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