allow - TODO

This commit is contained in:
James Turk 2024-07-27 01:13:10 -04:00
parent cd3d7466e3
commit e1f979f146
2 changed files with 20 additions and 11 deletions

View File

@ -2,12 +2,19 @@
A suite of tools for dealing with a directory of markdown files. A suite of tools for dealing with a directory of markdown files.
IDEA: just markdown? todo logic might be useful outside that? ## Tasks
TODO: decide on a more permanent name, maddog/md/mddir - TODO: more flags
- [ ] filters
TODO: this is an example of a todo due in the past {by:2024-07-01} - [ ] sorting
- TODO: add config file
TODO: this is an example of a todo with other tags {tag:example} - [ ] make file types configurable
- [ ] look in local dir, then XDG_HOME
DONE: two tags fields and status is done {tag:example} {by:2024-01-01} - TODO: support checkboxes
- [ ] scan lists
- [ ] percent complete
- TODO: decide on more permanent name
- IDEA: recurring?
- IDEA: track changes
- DONE: add color {by: 2024-07-26}
- DONE: support multi-tags {like:this} {by: 2024-07-26}

View File

@ -10,7 +10,9 @@ console = Console()
now = datetime.datetime.now() now = datetime.datetime.now()
ALL_TODO_RE = re.compile( ALL_TODO_RE = re.compile(
r"""^(TODO|IDEA|DONE):? # label starts a line r"""^
(?:\s*[-*]\s*)?
(TODO|IDEA|DONE):? # label starts a line
\s*([^\{\n]+) # body ends at { or newline \s*([^\{\n]+) # body ends at { or newline
(?:\s*(\{.*\}))? # repeated variations of {...} tags (?:\s*(\{.*\}))? # repeated variations of {...} tags
""", """,