Documentation for setting node file names with case sensitivity

I have a few org-roam-capture-templates, all looking similar to:

(setq org-roam-capture-templates '(("d" "default" plain "%?"
                                    :target
                                    (file+head "misc/${slug}.org"
                                               "#+title: ${title}\n#+filetags:")
...

It seems that ${slug} is always expanding to be all lower case. For example, if creating a node: fooBar under the default entry, the resulting file would be misc/foobar.org with

Changing the entry to use ${title} instead of ${slug} solves the problem:

(setq org-roam-capture-templates '(("d" "default" plain "%?"
                                    :target
                                    (file+head "misc/${title}.org"
                                               "#+title: ${title}\n#+filetags:")

But what I’m not clear on is where are these keywords (slug, title, etc) documented? I would expect to see it in the help for org-roam-capture-templates, but I don’t see it there.

I’d look at:

  1. (info "(org-roam) Node Properties")
  2. Source code, especially org-roam-node.el L152 onwards
2 Likes