Rust script for the Templater Obsidian plugin to carryover uncompleted To-dos from my vault's daily notes.
My Daily notes have a section looking like this when filled:
---
filename: 2023-08-31.md
---
## 📌 Today's Goals
**Subsection A**
- [x] Completed To-do
- [>] To-do saved for tomorrow
**Subsection B**
- [/] To-do half-completed
- [-] To-do canceled
- [ ] To-do uncompleted (not started)
This script carries over all uncompleted To-dos when a new file is created using Templater:
---
filename: 2023-09-01.md
---
## 📌 Today's Goals
**Subsection A**
- [ ] To-do saved for tomorrow
**Subsection B**
- [/] To-do half-completed
- [ ] To-do uncompleted (not started)
Note
To fully use the custom checkboxes a custom theme like Minimal's Checkboxes or my snippet is recommended
Requirements
- Having Templater installed
- Set
Enable User System Command Functions
toTrue
- Create a User Function with
carryover_todos
:<path_to_script>/carryover_todos "<% tp.file.folder(true) %>" "<% tp.file.title %>"
. Replace<path_to_script>
- Add the user function to a template like
<% tp.user.carryover_todos_rust({"section_title": <section_name>}) %>
. Replace<section_name>
Requirements
-
Having Rust/Cargo installed locally
-
Run
cargo build --release