New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outline path is ignored when org-roam-ref-capture at second time #2199
Comments
I attempted to use (defun org-roam-capture--try-capture-to-ref-h ()
"Try to capture to an existing node that match the ref."
(when-let ((node (and (plist-get org-roam-capture--info :ref)
(org-roam-node-from-ref
(plist-get org-roam-capture--info :ref)))))
(set-buffer (org-capture-target-buffer (org-roam-node-file node)))
(let* ((target (org-roam-capture--get-target))
(entry (car target))
(olp-point nil))
(when (or (eq 'file+olp entry) (eq 'file+head+olp entry))
(setq olp-point (org-roam-capture-find-or-create-olp (car (last target)))))
(goto-char (or olp-point (org-roam-node-point node))))
(widen)
(org-roam-node-id node))) |
I'm hitting the same thing. |
I haven't tried, but I wonder whether the I think that one asterisk is fine for the template as well:
|
Description
I'm trying to capture some text to a sub headline. Capturing works at first. At the second time, But, It inserts org headline into the wrong place.
Steps to Reproduce
org-roam-capture-ref-templates
and Reload it.xdg-open 'org-protocol://roam-ref?template=r&ref=https%3A%2F%2Fgithub.com%2Fyuchen-lea%2Forg-media-note&title=yuchen-lea%2Forg-media-note%3A%20Taking%20interactive%20notes%20when%20watching%20videos%20or%20listening%20to%20audios%20in%20org-mode.&body=Now%2C%20you%20can%20access%20all%20functions%20in%20org-media-note-hydra%2Fbody'
xdg-open 'org-protocol://roam-ref?template=r&ref=https%3A%2F%2Fgithub.com%2Fyuchen-lea%2Forg-media-note&title=yuchen-lea%2Forg-media-note%3A%20Taking%20interactive%20notes%20when%20watching%20videos%20or%20listening%20to%20audios%20in%20org-mode.&body=%20Here%2C%20I%20use%20Hyper%20key%20H%20for%20keybinding.%20In%20this%20way%2C%20I%20can%20quickly%20access%20personal%20functions%2C%20and%20no%20major%20or%20minor%20modes%20will%20stamp%20on%20my%20keys.%20Look%20into%20this%20for%20more%20information%3A%20Emacs%3A%20How%20to%20Bind%20Super%20Hyper%20Keys.%20Or%20you%20can%20bind%20it%20to%20any%20other%20key%20you%20like.%20After%20all%2C%20it%E2%80%99s%20Emacs%20%3B)'
Backtrace
Expected Results
Actual Results
Environment
of 2022-05-16
The text was updated successfully, but these errors were encountered: