Skip to content

Commit

Permalink
(refactor)org-roam-link: use org-roam-node-visit to follow the links
Browse files Browse the repository at this point in the history
No need to get through org-id-goto, which would query to
org-id-locations instead of our own database.
  • Loading branch information
Wetlize committed Aug 13, 2021
1 parent 3c59c7d commit 8a21131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org-roam-node.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 8a21131

Please sign in to comment.