Check and uncheck all checkboxes

I came up with a very hacky workaround that seems to clear all checkboxes:

  1. Get yourself espanso - it’s useful for a lot of other things.
  2. Enable Vim by going to Obsidian settings → Editor → Vim key bindings.
  3. 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"
  1. 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.