mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(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:
@ -151,7 +151,8 @@ first encapsulating ID."
|
|||||||
(while (and (not (org-roam-db-node-p))
|
(while (and (not (org-roam-db-node-p))
|
||||||
(not (bobp)))
|
(not (bobp)))
|
||||||
(org-roam-up-heading-or-point-min))
|
(org-roam-up-heading-or-point-min))
|
||||||
(org-id-get)))
|
(when (org-roam-db-node-p)
|
||||||
|
(org-id-get))))
|
||||||
|
|
||||||
;;;; File functions and predicates
|
;;;; File functions and predicates
|
||||||
(defun org-roam--file-name-extension (filename)
|
(defun org-roam--file-name-extension (filename)
|
||||||
|
Reference in New Issue
Block a user