[V2] set id to a timestamp?

Nothing complicated.

For the time stamp (“modified” property), I have this.

I then simply have org-roam-capture-templates to define the ID and modified properties at the head of a new Org file.

For the time stamp, just like this: :modified: <> (per the in-system documentation in the post I linked above, I think).

I don’t generate the ID with an Org-ID function but the normal date format (like %Y-%m-%d etc.)

For V1, see below. This is for my markdown front matter but it’s essentially the same for my Org. I don’t use it as is any longer as I have moved on to V2.

(setq org-roam-capture-templates
      '(("p" "personal" plain
         (function org-roam--capture-get-point) "%?"
         :file-name "personal/%<%Y-%m-%dT%H%M%S>"
         :head "---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\nmodified: <>\n---\n"
         :unnarrowed t)))

1 Like