diff --git a/README.md b/README.md index 6760d81..e96868d 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,19 @@ 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: this is an example of a todo due in the past {by:2024-07-01} - -TODO: this is an example of a todo with other tags {tag:example} - -DONE: two tags fields and status is done {tag:example} {by:2024-01-01} +- TODO: more flags + - [ ] filters + - [ ] sorting +- TODO: add config file + - [ ] make file types configurable + - [ ] look in local dir, then XDG_HOME +- 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} diff --git a/src/maddog/app.py b/src/maddog/app.py index 4be4108..cfecafb 100644 --- a/src/maddog/app.py +++ b/src/maddog/app.py @@ -10,9 +10,11 @@ console = Console() now = datetime.datetime.now() ALL_TODO_RE = re.compile( - r"""^(TODO|IDEA|DONE):? # label starts a line - \s*([^\{\n]+) # body ends at { or newline - (?:\s*(\{.*\}))? # repeated variations of {...} tags + r"""^ + (?:\s*[-*]\s*)? + (TODO|IDEA|DONE):? # label starts a line + \s*([^\{\n]+) # body ends at { or newline + (?:\s*(\{.*\}))? # repeated variations of {...} tags """, re.MULTILINE | re.VERBOSE, )