mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
fix org-roam-capture
This commit is contained in:
@ -541,17 +541,13 @@ This uses the templates defined at `org-roam-capture-templates'.
|
|||||||
Arguments GOTO and KEYS see `org-capture'."
|
Arguments GOTO and KEYS see `org-capture'."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let ((node (org-roam-node-read)))
|
(let ((node (org-roam-node-read)))
|
||||||
;; TODO: fix this
|
(org-roam-capture--capture :goto goto
|
||||||
(if (org-roam-node-id node)
|
:keys keys
|
||||||
(condition-case err
|
|
||||||
(org-roam-capture--capture goto keys
|
|
||||||
:info `((title . ,(org-roam-node-title node))
|
:info `((title . ,(org-roam-node-title node))
|
||||||
(slug . ,(funcall org-roam-title-to-slug-function
|
(slug . ,(funcall org-roam-title-to-slug-function
|
||||||
(org-roam-node-title node)))
|
(org-roam-node-title node)))
|
||||||
(file . ,(org-roam-node-file node)))
|
(file . ,(org-roam-node-file node)))
|
||||||
:context 'capture)
|
:context 'capture)))
|
||||||
(error (user-error "%s. Please adjust `org-roam-capture-templates'"
|
|
||||||
(error-message-string err)))))))
|
|
||||||
|
|
||||||
(provide 'org-roam-capture)
|
(provide 'org-roam-capture)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user