Commit graph

10 commits

Author SHA1 Message Date
ed0cb5ebc6 Refactor for CLI
General:
+ Improved documentation
cli.py:
+ added basic CLI, will likely be rewritten later.
TodoObject:
~ improved type-hinting for get_children
+ added get_parents method
+ moved get_md method from Todo
+ added get_* methods to get Tasks, Categories, and Notes from children
+ added property has_children
Todo:
~ changed string output to "File: {self.data_file.name}"
- moved get_md method to TodoObject
+ added write_data method
Task:
- removed get_* methods
+ added task_category method to get parent category.
+ added toggle_complete method.
- removed __add__ method.
Note:
- removed get_* methods.
- removed __add__ method.
Category:
- removed get_* methods.
- removed __add__ method.
2021-09-28 00:20:20 -04:00
ada7812e3b Parent/Child assignment & fetching refactor
- TodoObject.get_children accepts an obj_type to filter by
- Todo._get_parent accepts an obj_type to filter potential parents
- Todo._parse_category now properly assigns parent categories
- Reworked get_* methods in Task, Category, and Note to use get_children
2021-09-25 23:26:16 -04:00
e768dae978 Add \t support to parsing. 2021-09-25 20:16:08 -04:00
a696392560 Fix get_md() and parent assignments.
- now properly outputs category spacing in get_md()
  - removed task_spacing and note_spacing, may return later.
- fixed parent assignment, now iterates through the reversed children
  list.
  - this finds the closest parent.
- TodoObject now properly returns output with get_children()
2021-09-25 19:47:55 -04:00
7c32804575 Merge branch 'main' of ssh.gitdab.com:InValidFire/todo 2021-09-25 18:47:16 -04:00
cb322bd0d4 update README.md and todo.md 2021-09-25 18:46:50 -04:00
6df8c6d11c update README.md 2021-09-25 18:35:46 -04:00
6a1ac46b59 update todo.md 2021-09-25 18:34:24 -04:00
42067eb4f5 Add LICENSE 2021-09-25 18:28:49 -04:00
e917bea322 Initial Commit 2021-09-25 17:39:27 -04:00