What I’m trying to do
Write a dataview query listing unreciprocated backlinks to the current note.
i.e. Write a query that lists all the notes that link to the current note, but excluding any notes linked to in the current note.
I have a near solution (see next section), but it doesn’t exclude notes where the current note links to a block within that note.
If, for example, the current note links to a block in the note Foo.md like this: [[Foo#^bar]], then I would not want the note Foo.md to appear in the list. But it does.
Things I have tried
The query I have been using (which works fine except in the case of block links described above) is:
LIST FROM [] WHERE !contains(this.file.outlinks, link(file.name)) SORT file.name asc