I came up with a very hacky workaround that seems to clear all checkboxes:
- Get yourself espanso - it’s useful for a lot of other things.
- Enable Vim by going to Obsidian settings → Editor → Vim key bindings.
- Open your
default.yml
file in your espanso folder, and add the following lines:
# Super hacky way to clear checkboxes in Obsidian
- trigger: ":cc"
replace: ":%s/\\[x\\]/[ ]/g"
- In Obsidian, simply type
:cc
followed by enter, and all checkboxes get cleared.
I’ve been struggling this for months, and am glad to have finally found a solution.
Also: if anyone can tell me why this leaves you in visual mode (rather than normal mode) I’d be curious to find out.