I used to write my notes using Dendron. Ultimately I went with obsidian so that I could have a nice GUI and once obsidian’s mobile app came out I switched over entirely. However I have kept a couple features of Dendron in my implementation of Obsidian, primarily I use the id attribute in the frontmatter of all my notes and use the templater obsidian plugin to make sure all notes that I create are generated with a random UUID in the frontmatter.

I use this function in my template to generate the UUID which works on all platforms I use Obsidian on:

function uuidv4() { return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) ); }


Related Articles


Content is copyrighted 2019-2022 © D.S. Chapman. This site was built using GatsbyJS. Code for this website is open source and available on Github