I copy pasted a -capture template for my dailies in -roam. I googled quite a bit, asked Chat-GPT but cannot figure out why I am getting the same error message all the time. To my understanding target is defined. Maybe somebody is less blind than me.
From my .emacs
(let ((head "#+title: %<%Y-%m-%d (%A)>\n#+startup: showall\n* [/] Do Today\n* [/] Maybe Do Today\n* Journal\n"))
`(("j" "journal" entry
#'-roam-capture--get-point
"* %<%H:%M> %?"
:file-name "daily/%<%Y-%m-%d>"
:head ,head
:olp ("Journal")
:target (file+head "daily/%<%Y-%m-%d>" ,head))
("t" "do today" item
#'-roam-capture--get-point
"[ ] %(princ as/agenda-captured-link)"
:file-name "daily/%<%Y-%m-%d>"
:head ,head
:olp ("Do Today")
:immediate-finish t
:target (file+head "daily/%<%Y-%m-%d>" ,head))
("m" "maybe do today" item
#'-roam-capture--get-point
"[ ] %(princ as/agenda-captured-link)"
:file-name "daily/%<%Y-%m-%d>"
:head ,head
:olp ("Maybe Do Today")
:immediate-finish t
:target (file+head "daily/%<%Y-%m-%d>" ,head)))))
I still receive the error message:
Template needs to specify ‘:target’
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744935037a4601970.html
评论列表(0条)