Following the inspiration of this post, I have been trying to use only ID links in my
org-roam files. I have
org-roam-prefer-id-links set to
t. And my
org-roam-capture-templates put an ID property at the top of every new file.
But when I create a new file
testa a via
org-roam-find-file, and then in
filea I call
org-roam-insert, what’s inserted is a
:PROPERTIES: :ID: 2021_0322_201447 :END: #+title: testa [[file:2021_0322-testb.org][testb]]
:PROPERTIES: :ID: 2021_0322_201506 :END: #+title: testb
I see that in the implementation of
org-roam-insert that the 5th optional argument is link-type:
(defun org-roam-insert (&optional lowercase completions filter-fn description link-type)
which defaults to type
LINK-TYPE is the type of link to be created. It defaults to \"file\".
Am I wrong to think that org-roam-prefer-id-links should override this default and produce an ID link in this case? Or is that effect achievable via some sort of alternative configuration I’m as-yet unaware of?