This extension adds a simple deadline functionality to markdown lists. Simply add a date in the format dd/mm/yyyy before any markdown list to see the days remaining until that date (also warn when the deadline approaches).
If the deadline is approaching, you get a squiggly line under the date. The remaining days are always appended to the end of the dates' line.
Adding a Deadline Section
Everything under a deadline is grouped as one. To begin a new deadline, simply add another date before the next list.
Combining With Existing Markdown Syntaxes
Result (left vscode, right rendered markdown)
The diagnostics was made to work in vscode. It just parses the markdown file and gives you diagnostics using vscode's LSP API. If you preview it (as seen on the right), you won't see all the deadline diagnostics and reports. But because the dates syntax are basically just markdown, if you render it you'll still see the dates, just not the reported diagnostics.
Ending a Section Early
Due to the nature of the syntax, once you add a date, the parser will try to match any lists below it as a part of the deadline. Doesn't matter if it's already a new topic and you're writing about something else 300+ lines below the date.
To explicitly end a date section, you can add
If you a date is found to be inside a codeblock, it is ignored.
Skipping a Section
If you want to skip a section for whatever reasons -- maybe you got lazy and wanted to just not do the thing, but want don't want to delete the list -- you can add a
Moving a Section
This is a bit different from skipping. This is a bit better. Instead of not doing it at all, you are
This works across all markdown files.
Moving must be done with the exact syntax. The two examples below show the top section moving its items to the bottom, while the bottom move its items with an incorrect syntax (nothing happens).
All Items Moved
Some Items Moved
Full Example (2 files)