V2: ignore headline node with org id

Hi,
if I understand correctly, every headline with org ID is considered a org-roam node in V2. Is it possible to ignore some of those headlines?
For example, I want to org-attach something to a headline. This creates org ID for that headline, but I don’t want org-roam to consider this headline a node.

1 Like

This?
https://www.orgroam.com/manual.html#Customizing-Node-Caching

2 Likes

Thanks, I searched for wrong keywords.

1 Like

I’d be interested in a property to exclude a node and all its children. Anyone have something like this already?

I tried setting org-use-property-inheritance to '("ROAM_EXCLUDE") to at least get this behavior globally, but it didn’t seem to work.

@liam,

I think this should let Org-roam consider inheritance for the ROAM_EXCLUDE property (untested, though).

(setq org-roam-db-node-include-function
      (lambda ()
        (not (org-entry-get (point) "ROAM_EXCLUDE" 'inherit))))

If this works, you should not need org-use-property-inheritance (you can keep it as nil, the default value).

But… I would just do the same thing by not adding IDs to headings of such subtree. I’m curious. Why do you have IDs if you want to exclude a subtree from caching?