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.
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}

View File

@ -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,
)