Skip to content

Instantly share code, notes, and snippets.

@astro-jingtao
Created June 14, 2025 06:04
Show Gist options
  • Save astro-jingtao/ba6808b48aa8fd5fcc0f66c8b77ef64f to your computer and use it in GitHub Desktop.
Save astro-jingtao/ba6808b48aa8fd5fcc0f66c8b77ef64f to your computer and use it in GitHub Desktop.
embed all files with given tag by dataviewjs
let current = dv.current().file.name
let query = `LIST WITHOUT ID file.name WHERE contains(file.etags, "#框架构图") SORT length(file.inlinks) DESC`
let response = await dv.query(query)
let items = response.value.values
let embeds = items.map(x => `![[${x}]]`)
dv.paragraph(embeds.join('\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment