Using time string as file name

I try to find the documentation about setting the file name.

In Org-roam, this is done by setting things like:

(setq org-roam-capture-templates
      '(("d" "default" plain (function org-roam--capture-get-point)
         :file-name "%<%Y%m%d%H%M%S>"
         :head "#+title: ${title}\n"
         :unnarrowed t)

After this setting, every new page generated, will have the same
format e.g.,

I believe this is a useful feature.

I hope this already being documented somewhere but I could not find

I’ve tried to add the following code to config.edn

 :pages/file-name-format "yyyy-MM-dd",
 :pages/file-name-format "yyyy-MM-dd-HH-MM-SS",

None of them will change the file name when a new page is create.

I’ve also search the discord, but fail to find any information.

in config.edn add :

:date-formatter "yyyy-MM-dd" 

then refresh. From now on, all new journal pages should follow the taxonomy you’ve defined.
I believe you still have to manually rename existing journal pages though


Thanks for the suggestions @cannibalox

Sorry I did not make it very clear.

What I want to make the change is to the new page instead of daily notes.

For example, if I create a new page with a name: file_name_test_3

The current version of logseq will create a new file:


But, what I was asking is that the file name is formatted as:


I’ve tried :date-formatter "yyyy-MM-dd", and re-indexed the data
base, but it still not the desired filename format.

Yes, it’s not supported yet.

1 Like

@username_0 oh it’s not solved yet because I’m not sure whether it’ll be added soon. Let’s leave this open and I’ll check this thread after I finish some work at hand :grinning_face_with_smiling_eyes:

1 Like

That’s perfectly fine. No worry, no rush, enjoy the coding. :wink:

1 Like

Any update on this? Or is it possible via plugin, as I don’t mind code it by myself.