If you have the file name (this includes the path in the Emacs terminology), I think it should be a simple matter of opening the file in a temp buffer and look for :NOTER_PAGE: or :NOTER_DOCUMENT:. That’s what I now see (org-roam-unlinked-references-preview-line f row) does with row .
You can then add the something like this below as an element to the and part of the when condition instead of s-contains?: (not (function-to-check-string-in-row-of-file ":NOTER_PAGE:" file row))
Amazing, thank you @nobiot ! I was able to exclude all lines containing references to “:NOTER_…” by stitching together the following config from this thread:
(when (and match
(not (file-equal-p (org-roam-node-file node) f))
(member (downcase match) (mapcar #'downcase titles))
(not (s-contains? ":NOTER_" (org-roam-unlinked-references-preview-line f row)))
I don’t really know much elisp so I am sure this is a clunky fix, but in the few instances I have tested so far it works perfectly!
Can’t tell you how pleased I am to finally be able to use the unlinked references section. Thanks again!!