Opengist Logo gist.melkat.dev

Explore

  • All gists
  • Topics
  • Users
melkat.dev
Give feedback on the new UI Powered by Opengist ⋅ 76ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
o

obsidian

Recently created Least recently created Recently updated Least recently updated

melanie / johnny-decimal-index-for-obsidian-with-dataview.md

Last active 3 months ago obsidian
0 0 1

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 }) => {