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:
@ -579,8 +579,7 @@ GOTO and KEYS argument have the same functionality as
|
||||
`org-capture'."
|
||||
(let* ((org-capture-templates (mapcar #'org-roam-capture--convert-template org-roam-capture-templates))
|
||||
(one-template-p (= (length org-capture-templates) 1))
|
||||
org-capture-templates-contexts
|
||||
(org-capture-link-is-already-stored t))
|
||||
org-capture-templates-contexts)
|
||||
(when one-template-p
|
||||
(setq keys (caar org-capture-templates)))
|
||||
(if (or one-template-p
|
||||
|
Reference in New Issue
Block a user