Changelog¶
This file contains the changes made between released versions.
The format is based on Keep a changelog and the versioning tries to follow Semantic Versioning.
Not released yet¶
Added¶
Task’s method to serialize itself can be configured through theserializerparameter and propertyTodoTxtcan be configured to use a different than the default serialization method (serializerparameter and property)Two serialization methods:
serialize_pedanticandserialize_relaxed. The pedantic variant is the default and provides the same behaviour as previous versions.
The serialize_relaxed method uses a relaxed interpretation of the todo.txt
description and will also produce todo.txt tasks that have a
“completed on” date, but not a “created on” date (e.g. x 2015-07-21 Prepare tea).
It will also insert a priority marker into completed tasks.
3.0.0¶
Breaking change¶
TodoTxt.add()now actually sets theTask.linenrproperty is accordance to the documentation ofTask.linenr, starting at0(thanks to Adam)TodoTxt.save(target="...", safe=True)will create the temporary file in the location of the target instead of the location ofself.filename(which might be read-only or on a different filesystem than the target)
Fixed¶
License specification in
pyproject.tomlis now a proper SPDX identifier
2.0.0¶
Changed¶
Behaviour when encountering a
a:b:cwas changed to interprete this as keyawith valueb:cinstead ofa:bwith valuecSwitched to
pyproject.toml
1.5.0¶
Fixed¶
Blank lines in a
todo.txtfile are ignored (they used to create a completely emptyTask)
1.4.3¶
Fixed¶
Task.remove_attributeused to remove everything after the first occurrence of a matching attribute name (thanks to Gal)
1.4.2¶
Fixed¶
Saving an empty
TodoTxtwould result in a file with a single newline (#9)
1.4.1¶
Fixed¶
Missing trailing line separator when serialising a
TodoTxt
Changed¶
TodoTxt.linescallsTodoTxt.build_lines
1.4.0¶
Fixed¶
Taskwould add the completion date to itsstrrepresentation of a completed task even if there was no creation date set
Added¶
TodoTxtParserto make the parsing of atodo.txtfile extendableTodoTxt.write_to_streamto write to an io stream instead of to diskDocumentation. Finally.
1.3.0¶
Added¶
__repr__for bothTaskandTodoTxtadded (thanks to Sean Breckenridge)
1.2.1¶
Fixed¶
Fix crash when creating
Task()without any line content
1.2.0¶
Added¶
1.1.0¶
Fixed¶
A task that had no description used to crash pytodotxt when attempting to add an attribute (or a context or a project)
Added¶
bare_descriptionfunction ofTaskto get the description without any properties or contexts/projects (#2)
1.0.7¶
Fixed¶
Fixed
__getattr__error (thanks to sandervoerman)
1.0.6¶
Fixed¶
Fixed regression when saving with “safe-save” option
1.0.5¶
Fixed¶
Bug when saving files on Windows with non-ansi characters in the path name
1.0.4¶
Added¶
TodoTxt can be configured for an encoding
1.0.3¶
Added¶
Caching attributes to prevent repeated reparsing
Have a reference in a task to the file that it belongs to
Convenient access to task’s attributes by task.attr_name, eg. task.attr_due for due date
1.0.2¶
Fixed¶
Bug fix when task consists only of a date
1.0.0¶
Splitting package into the basic library and its user-facing packages