Serendipity and Obsidian
I love moments of serendipity, when you discover something by (fortunate) accident. My Zettelkasten in Obsidian has well over thousand individual notes. Although they are heavily linked, there’s no way I could possibly be aware of every note all the time.
So, I’ve set up a little DataView script in my daily note. It goes like this:
```dataviewjs
const time = Number(dv.current().file.ctime)
const files = dv.pages('"pages/Zettelkasten/Permanent Notes"')
const idx = time % (files.length-1)
const randomNote = files[idx]
dv.paragraph('[[' + randomNote.file.name + ']]')
```
Place it anywhere you want and it will surface a random (but stable) note from the folder you specify.
More than once did I discover a note that significantly added value to my day, just because it was there, and gave my mind a nudge into a different direction.