(refactor)org-roam-link: use org-roam-node-visit to follow the links

No need to get through org-id-goto, which would query to
org-id-locations instead of our own database.
This commit is contained in:
Wetlize
2021-08-14 00:01:25 +03:00
parent 3c59c7d74e
commit 8a21131d9f

View File

@ -609,7 +609,8 @@ Assumes that the cursor was put where the link is."
(progn
(when org-roam-link-auto-replace
(org-roam-link-replace-at-point))
(org-id-goto (org-roam-node-id node)))
(org-mark-ring-push)
(org-roam-node-visit node))
(org-roam-capture-
:node (org-roam-node-create :title title-or-alias)
:props '(:finalize find-file))))