What I’m trying to do
I’m trying to recreate the functionality of this Dataview code to find files that have been linked to but not yet created.
TABLE without id
out AS "Uncreated files", file.link as "Origin"
FLATTEN file.outlinks as out
WHERE contains(file.path, "Notes") AND !(out.file) AND !contains(meta(out).path, "/")
SORT out ASC
limit 5
Things I have tried
I’m close with this code but looking for “/” isn’t quite working because I get false positives.
formulas:
Untitled: ""
views:
- type: table
name: Default view
filters:
and:
- '!file.links.contains("/")'
- "!file.links.isEmpty()"
order:
- file.name
- file. Links
limit: 10
I think it is because I’m not actually looking at the path to the note and only looking at the text such that [[mynote]] would be returned no matter whether it exists or not.