Batch add front matter

You can do it in VS Code. I wouldn’t say it’s simple, but doable.

:warning: Please, test this before using it on actual notes, and don’t forget to backup. :warning:

Find (in regex mode): ^(?<![\s\S\r])
Replace: ---\nkey1: value1\nkey2: value2\n---\n\n

Edit keys and values according to your needs, separating each line with \n.

5 Likes