- 28 Dec, 2016 2 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
- 16 Dec, 2016 1 commit
-
-
Bram Schoenmakers authored
-
- 15 Dec, 2016 4 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
When no valid grouping could be made, an empty header would be printed (0 length group label, zero = characters below). The empty tuple represents the initial grouping.
-
- 06 Dec, 2016 2 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
- 02 Dec, 2016 1 commit
-
-
Bram Schoenmakers authored
Fixes #153
-
- 30 Nov, 2016 1 commit
-
-
Bram Schoenmakers authored
This reverts the first attempt (commit 8310b029), because relative dates in terms of hours were printed. This attempt passes the now object that we just created to humanize(), so that will be used as a offset. If we don't supply that object, arrow will create a different datetime object representing 'now', which might be slightly off w.r.t. the now object we created. Therefore the floating point arithmetic done within the arrow library might not produce the desired results (delta / 86400). By passing the offset ourselves I was able to produce reliable results.
-
- 29 Nov, 2016 6 commits
-
-
Bram Schoenmakers authored
With the previous method of using arrow, the same date object would result in different humanized dates. Apparently using now() and then replacing the date components triggers some inaccuracy. Simplify the call to arrow by passing it the datetime object directly.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
It will simply gather all todo items in all groups and pass them to print_list
-
Bram Schoenmakers authored
-
- 28 Nov, 2016 2 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
- 27 Nov, 2016 3 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
When grouping by project, todo items without a project wouldn't be listed (same for contexts). Moreover, sort the projects such that the items without project are shown at the bottom of the list.
-
- 26 Nov, 2016 4 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
Also, the label of a field is passed in the output of the group() method.
-
Bram Schoenmakers authored
-
- 24 Nov, 2016 13 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
When grouping takes place, don't sort the full list of todo items first and then group. Because the todos in the group won't necessarily match the given sort expression, for those items which match multiple groups. These are the steps instead: 1. Get all todo items 2. Filter them 3. Pre-order them according to the group expression 4. Split in groups using groupby() 5. Then sort the individual groups according to the sort expression
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
Otherwise it's hard to test the output when the order differs on every execution.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
For example, when grouping by project, a todo item in two groups will be added to each applicable project.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Colin Sullivan authored
-
- 21 Nov, 2016 1 commit
-
-
Bram Schoenmakers authored
-