melanie / johnny-decimal-index-for-obsidian-with-dataview.md
0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív
Johnny Decimal Index Generator for Obsidian with Dataview
You will need to enable JavaScript Queries in the Dataview settings.
let areas = dv.pages("").file.folder.groupBy(g=>g.split("/")[0]).filter(({ key }) => /^\d{2}-\d{2} /.test(key))
let output = ''
areas.forEach(({ key: areaKey, rows: areaRows }) => {
output += `\n- ${areaKey}`
areaRows.groupBy(g => g.split("/")[1]).forEach(({ key: categoryKey, rows: categoryRows }) => {
Újabb
Régebbi