- 18 Nov, 2015 2 commits
-
-
Bram Schoenmakers authored
A strict recurrence is prefixed with +. Simply prepending a minus sign results in an invalid pattern -+5d. It should be +-5d. But strict recurrence is not of importance when calculating the todo's length, so discard the + altogether and replace it with a - to get -5d.
-
Bram Schoenmakers authored
All sensible one-letter abbreviations are already taken (c for color, p for progress, h for hue, ...)
-
- 17 Nov, 2015 4 commits
-
-
Bram Schoenmakers authored
A color block is basically a space with a background color and can be inserted with a special placeholder for list formatting (not in this commit). The color is determined by attributes of the todo. This implementation focusses on the due date. A color is assigned on a range from green to yellow to red, where red is overdue, yellow is nearly overdue and green is still 'safe'. This is relative to the length of the todo item (due minus start date). The start date can be determined in multiple ways: * an explicit start date with the t: tag * the due date minus the recurrence period (rec: tag) The recurrence takes precedence over the explicit start date in calculating the length. The primary reason is that t: is mainly used for filtering purposes. This is still experimental, I'm just pushing my work in progress here. TODO: (B) Add tests (C) Determine color based on other attributes such as importance, priority or a value of a user-specified tag (C) Revisit the Colors class to fit nicely in the design
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
- 16 Nov, 2015 6 commits
-
-
Bram Schoenmakers authored
Improves branch coverage. Also related to commit cde8f8ed.
-
-
Bram Schoenmakers authored
The lambdas, which are not all run, cause coverage to think that the jump to the function exit was never made, polluting the results. Therefore add this pragma to mask these instances of missing branch coverage. See also: https://bitbucket.org/ned/coveragepy/issues/90/lambda-expression-confuses-branch
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
The result of a minor merge error.
-
Bram Schoenmakers authored
This reverts commit bbdfb2a5. (Wheel) dependencies are evaluated at build time, so they should stay in extras_require, which are evaluated at install-time. See issue #79.
-
- 15 Nov, 2015 1 commit
-
-
Bram Schoenmakers authored
Add new tests to increase lib coverage Mainly adds a missed case in ExpressionCommand, where priority filters were not covered.
-
- 14 Nov, 2015 16 commits
-
-
Jacek Sowiński authored
-
Bram Schoenmakers authored
Installing from the source distribution (sdist), ushlex and shutil_get_terminal_size were not installed. Putting the condition in install_requires addresses this.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
Oops! Almost forgotten.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
When a user requests a specific todo ID, always show it, even when the todo item is not relevant.
-
Bram Schoenmakers authored
Conflicts: topydo/commands/ListCommand.py
-
Bram Schoenmakers authored
Conflicts: setup.py
-
Bram Schoenmakers authored
Also marked a few functions private.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
Move format parsing logic to ListFormatParser
-
Jacek Sowiński authored
This way we can safely remove `PrettyPrinterIndentFilter` and output length is still properly maintained by `ListFormatParser`.
-
Jacek Sowiński authored
ListFormatParser is now the core of PrettyPrinterFormatFilter, but can also be easily used in another areas. Whole functionality of PrettyPrinterAlignFilter was also moved into it. Main advantage of having separate parser for list_format is possibility of initializing it and resolving placeholders only once. Previous implementation did that with each Todo object.
-
- 11 Nov, 2015 4 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Jacek Sowiński authored
- From now on literal `%` signs always have to be escaped with `\` (`\%`), even inside conditional braces. - `%%` won't work anymore. - Nonexistent placeholders (for example`%&`) will be expanded to empty strings (`''`). This change fixes also some bugs: - inappropriate output width when \t was used without %S (example: `%p{ }\t%{ }p`) - curly braces inside conditional braces (example: `%{{}p{}}`) Minor: recognize literal `\t` in list_format config option and in `-F`.
-
Bram Schoenmakers authored
They mostly deal with corner cases (small terminals, dodgy texts in the prefix/suffix). Also prepare the test for the new syntax where a literal % will be written as \% instead of %%.
-
- 10 Nov, 2015 5 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
This corresponds to the change made in commit 33794435.
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-
- 09 Nov, 2015 2 commits
-
-
Bram Schoenmakers authored
-
Bram Schoenmakers authored
-