You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a template in org-roam-capture-ref-templates that contains
:target (file+head+olp .. ("h1"))—i.e. an OLP of length 1:
the capture buffer is created, is empty, and is not opened in the foreground
:target (file+head+olp .. ("h1" "h2"))—i.e. an OLP of length >1—or `:target (file+head ..)—i.e. no OLP:
initial creation happens correctly, with the content inserted at the right outline path if any
when adding to an existing ref note, content is inserted right before the first heading in the file, ignoring the OLP
The misplaced content bug is triggered even when not using the OLP target: when using e.g. #+title: ${title}\n\n* foo as the heading and ${body}\n as the template, the actual content of the buffer ends up being #+title: ${title}\n\n${body}\n* foo.
Description
With a template in
org-roam-capture-ref-templates
that contains:target (file+head+olp .. ("h1"))
—i.e. an OLP of length 1:the capture buffer is created, is empty, and is not opened in the foreground
:target (file+head+olp .. ("h1" "h2"))
—i.e. an OLP of length >1—or `:target (file+head ..)—i.e. no OLP:The misplaced content bug is triggered even when not using the OLP target: when using e.g.
#+title: ${title}\n\n* foo
as the heading and${body}\n
as the template, the actual content of the buffer ends up being#+title: ${title}\n\n${body}\n* foo
.Steps to reproduce
Working template:
Reproducer for (1):
Reproducers for (2), mostly from memory unfortunately:
A dynamic OLP:
"Manual" headings:
Switching these to
entry
also did not have any effect as far as I could tell.Environment
The text was updated successfully, but these errors were encountered: