DV list missing notes

Setup

Paste the code below into your note. Remember to add three backticks before and after the code to mark it as a codeblock.

Adjust the values for file names and file paths you want to exclude by replacing Template and 90 Organize with whatever works for your vault. If you need only one of these filter options, you can delete the other one. Of course, you can also add additional ones following the pattern in the example.

Code

dataview
TABLE WITHOUT ID
	out AS "Target", file.link as "Source"
FLATTEN file.outlinks as out
WHERE !(out.file)
	AND !contains(meta(out).path, "/")
	AND !contains(file.link,"Template")
	AND !contains(file.path, "90 Organize/")
SORT out ASC

Effect

This query creates a table of broken links (links that do not point to an existing file) that do not point to a different folder or to a file with “Template” in its name or to a file in the “90 Organize” folder. The table has two columns: “Target” (the broken link) and “Source” (the file that contains the link).

Example output

DV - list missing notes output.png