Add time stamp to captures with roam-ref protocol

Using the roam-ref protocol, how do I need to change org-roam-capture-ref-templates to include an org-mode(?) time stamp such as #+created: [2020-07-10 Fri 21:55]?

You’d need to modify org-roam-capture-ref-templates. Here’s an example of what you could add to your config:

(setq org-roam-capture-ref-templates
      '(("r" "ref" plain
         #'org-roam-capture--get-point
         ""
         :file-name "caps/${slug}"
         :head "#+title: ${title}\n#+roam_key: ${ref}\n#+created: %u\n\n"
         :unnarrowed t)))
1 Like

Thanks for checking back that quickly! That did it and in the end I used the %T escape.