Easily creating a default tasks code block with 'Codeblock Completer' #1368
claremacrae
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
There is an unpublished plugin that I find really useful for creating
tasks
code blocks.Codeblock Completer
https://github.com/SkepticMystic/codeblock-completer
It's not in the official plugin list, so as of December 2022 you would need to add it via BRAT.
A small thing is that as you type the three backticks and then start typing
ta
it will auto-complete totasks
.A bigger thing is that it allows you to create templates for code blocks. This is really helpful for
tasks
code blocksMy
tasks
templateThis screenshot shows the bit of my Codeblock Completer settings where I have created this template for all my new
tasks
code blocks:So every new
tasks
code block looks like this:Example reasons for using it
Here are a couple of the reasons you might use the Codeblock Completer plugin.
Repetition: Often typing the same tasks instructions
If you find you use the same tasks instructions in many queries, then use Codeblock Completer to add them automatically.
Any that you don't want to use all the time can be commented out with a
#
in the template, and then easily un-commented in the code block if you want to use them.Performance: Empty tasks block renders hundreds of tasks, making editing really slow
Normally, every time you create a new tasks block, you start with this:
If you have a Live Preview or Reading view open on that note, it will immediately render every task in your vault. For me that is 6,000 tasks (mostly done). It takes a loooong time to render them, and I cannot start editing my new tasks block until that happened. I used to force-quit Obsidian on my Mac every time this happened. Really annoying.
This is solved by adding a
limit
instruction to your Codeblock Completer template fortasks
blocks.Acknowledgements
Thanks to @SkepticMystic for this very helpful plugin.
Beta Was this translation helpful? Give feedback.
All reactions