Skip to content

Commit

Permalink
script: list the orphans in the vault
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko committed Jun 8, 2021
1 parent 763ed91 commit fb7caa0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/orphans.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

title:: Lists all orphans in the vault
author:: Akos Balasko

----

```dataviewjs
const orphanFiles = dv.pages().array().filter(note => (note.file.outlinks.length === 0 && note.file.inlinks.length === 0));
dv.list(dv.array(orphanFiles).file.link)
```

0 comments on commit fb7caa0

Please sign in to comment.