(fix)org-roam-id-at-point: ignore top-level excluded nodes (#1704)

Previously if a top-level file node is excluded, it would still be
picked up by org-roam-id-at-point. This adds another org-roam-db-node-p
check before returning an ID, fixing the broken behaviour. Fixes #1635.
This commit is contained in:
Jethro Kuan
2021-07-29 11:15:14 +08:00
committed by GitHub
parent b3b6277b96
commit 3f2d42142c

View File

@ -151,7 +151,8 @@ first encapsulating ID."
(while (and (not (org-roam-db-node-p))
(not (bobp)))
(org-roam-up-heading-or-point-min))
(org-id-get)))
(when (org-roam-db-node-p)
(org-id-get))))
;;;; File functions and predicates
(defun org-roam--file-name-extension (filename)