Bram Schoenmakers
|
7a95b2810c
|
Ignore vim swap files.
|
2014-06-13 20:59:30 +02:00 |
|
Bram Schoenmakers
|
4074887e76
|
Deal with empty lines.
A line is considered a todo item when it contains at least one
non-whitespace character.
|
2014-06-13 20:59:03 +02:00 |
|
Bram Schoenmakers
|
23e7aa4970
|
Make test for add a bit more robust.
|
2014-06-13 20:48:12 +02:00 |
|
Bram Schoenmakers
|
94c2d5cbe8
|
Add test for printing the todos.
Make sure the content is preserved byte by byte.
|
2014-06-13 20:46:22 +02:00 |
|
Bram Schoenmakers
|
b53b24af28
|
Add tests for the TodoList class.
|
2014-06-13 20:22:27 +02:00 |
|
Bram Schoenmakers
|
d58811de2a
|
Fix various issues after testing.
|
2014-06-13 20:18:20 +02:00 |
|
Bram Schoenmakers
|
aa3e835190
|
Rename print method.
|
2014-06-13 20:17:44 +02:00 |
|
Bram Schoenmakers
|
f8415113bf
|
Add source() function.
text() is the todo text without the tags. source() is the raw todo text.
|
2014-06-13 20:17:21 +02:00 |
|
Bram Schoenmakers
|
167f91b4f1
|
Fix class attributes, instantiate in __init__.
|
2014-06-13 19:21:56 +02:00 |
|
Bram Schoenmakers
|
56104e70ab
|
Do the parsing of the todo strings in the TodoList.
|
2014-06-13 18:32:46 +02:00 |
|
Bram Schoenmakers
|
9bc283b149
|
Don't allow empty project or context names.
A @ or + must be followed by at least one non-whitespace character to
qualify.
|
2014-06-13 18:16:38 +02:00 |
|
Bram Schoenmakers
|
5142c2b4ba
|
Return the set.
|
2014-06-13 18:11:04 +02:00 |
|
Bram Schoenmakers
|
c9873a5aa3
|
Add view method.
|
2014-06-13 18:01:27 +02:00 |
|
Bram Schoenmakers
|
7704cebfc9
|
Return a set of projects/contexts.
|
2014-06-12 23:03:56 +02:00 |
|
Bram Schoenmakers
|
4daa59e3b6
|
Add test for set_text.
|
2014-06-12 22:41:24 +02:00 |
|
Bram Schoenmakers
|
de1dca40d5
|
Also check the todo field for the completion date.
|
2014-06-12 22:38:15 +02:00 |
|
Bram Schoenmakers
|
cad95a5fbb
|
Add method to set a todo text.
|
2014-06-12 22:34:27 +02:00 |
|
Bram Schoenmakers
|
0b1d113939
|
Add method to mark a todo as completed.
|
2014-06-12 22:34:06 +02:00 |
|
Bram Schoenmakers
|
391a72838b
|
Write date objects instead of strings with a date to todo fields.
|
2014-06-12 22:33:27 +02:00 |
|
Bram Schoenmakers
|
a72ffb9776
|
Add tests for Todo class.
|
2014-06-09 20:36:15 +02:00 |
|
Bram Schoenmakers
|
efff0cb3ba
|
Make sure not to return negative lengths.
|
2014-06-09 20:19:07 +02:00 |
|
Bram Schoenmakers
|
5bcb0593e6
|
A few more tests for TodoBase.
|
2014-06-09 19:50:28 +02:00 |
|
Bram Schoenmakers
|
c460518f3d
|
Add test code for the base Todo class.
|
2014-06-09 14:42:21 +02:00 |
|
Bram Schoenmakers
|
722df42049
|
Add ability to unset priority by passing priority = None
|
2014-06-09 14:41:47 +02:00 |
|
Bram Schoenmakers
|
04e200e290
|
Also set new priority in source string when no priority is present.
|
2014-06-09 14:34:58 +02:00 |
|
Bram Schoenmakers
|
c8419a5a0d
|
Make sure only to allow a single character for the priority.
|
2014-06-09 14:30:07 +02:00 |
|
Bram Schoenmakers
|
39d199f3c2
|
Fix the priority return.
|
2014-06-09 14:14:51 +02:00 |
|
Bram Schoenmakers
|
1bb16d5bb7
|
Remove tags with more precision from the source string.
|
2014-06-09 14:03:22 +02:00 |
|
Bram Schoenmakers
|
c74e844cbc
|
The key cannot have a : character.
|
2014-06-09 13:36:54 +02:00 |
|
Bram Schoenmakers
|
b478b2942f
|
Add method to check for task completeness.
|
2014-06-09 12:41:17 +02:00 |
|
Bram Schoenmakers
|
3da4d82bfa
|
Guard for missing dates.
|
2014-06-09 12:40:58 +02:00 |
|
Bram Schoenmakers
|
d5ff3de39f
|
Create a Todo class which has knowledge of start and due dates.
|
2014-06-09 12:36:12 +02:00 |
|
Bram Schoenmakers
|
a7db2e8ced
|
Add module with utility functions.
For now contains only one function which returns a date string into a
date object.
|
2014-06-09 12:05:55 +02:00 |
|
Bram Schoenmakers
|
4fd141247c
|
Also make it possible to check on the value when checking tag existence.
|
2014-06-09 11:43:51 +02:00 |
|
Bram Schoenmakers
|
a0c5d76e9f
|
Add two accessors for projects and contexts.
|
2014-06-09 11:40:24 +02:00 |
|
Bram Schoenmakers
|
fae7585eaa
|
Rename class to TodoBase.
|
2014-06-09 11:40:24 +02:00 |
|
Bram Schoenmakers
|
b8a4f53592
|
Add class that reads and writes a todo.txt file.
|
2014-06-09 01:15:25 +02:00 |
|
Bram Schoenmakers
|
92ff23c414
|
Strip raw todo lines.
|
2014-06-09 01:13:25 +02:00 |
|
Bram Schoenmakers
|
6789ac3aa2
|
Initial commit.
Wrote the base class that represents a single todo item.
|
2014-06-09 00:54:49 +02:00 |
|