Checklist Manager (my current workaround for tasks in callouts!) #1404
komiksam
started this conversation in
Templates Showcase
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been having a lot of trouble since the last Obsidian update because I put the tasks on my daily notes inside callouts, and there's a bug that checks the wrong task when you click it. That's why I thought it could be useful to have a template to manage all tasks in the note at once, with different actions to manipulate them.
This is a prototype, but I thought it could be amplified with many new different modes. I hope someone finds this useful! (I'm a javascript newbie, so don't judge my programming please, and also any suggestions and improvements are welcome👉👈)
Usage
The template can be called through a Obsidian Buttons button or a Meta Bind button (you can delete the async function delay at the end if you don't use Obsidian Buttons).
My tasks go in a sub-callout, so all task lines start with ">>". If yours don't, you should change all instances of
task.substring()
reducing the index by two (for example,task.substring(8)
should be changed totask.substring(6)
).Supported modes
[ ]
and[x]
.- [ ] task (15:00)
.- [ ] task (@15:00)
.<big>
or<small>
HTML tags to tasks.Snippet
Beta Was this translation helpful? Give feedback.
All reactions