From 8a21131d9f5f6a136bf355b2d3f3f1c765f0eddd Mon Sep 17 00:00:00 2001 From: Wetlize Date: Sat, 14 Aug 2021 00:01:25 +0300 Subject: [PATCH] (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. --- org-roam-node.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org-roam-node.el b/org-roam-node.el index fe667d4..1f90926 100644 --- a/org-roam-node.el +++ b/org-roam-node.el @@ -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))))