mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): allow link captures (#1347)
Previously we had set `org-capture-link-is-already-stored` to `t` in org-roam captures, because org-roam-protocol stores links. This prevented regular captures from utilizing the %a element in the templates. Instead, only set `org-capture-link-is-already-stored` in the org-roam-protocol capture command. Fixes #1341.
This commit is contained in:
@ -80,6 +80,7 @@ It opens or creates a note with the given ref.
|
||||
(let* ((org-roam-capture-templates org-roam-capture-ref-templates)
|
||||
(org-roam-capture--context 'ref)
|
||||
(org-roam-capture--info decoded-alist)
|
||||
(org-capture-link-is-already-stored t)
|
||||
(template (cdr (assoc 'template decoded-alist))))
|
||||
(raise-frame)
|
||||
(org-roam-capture--capture nil template)
|
||||
|
Reference in New Issue
Block a user