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., 20201210144105.org
.
I believe this is a useful feature.
I hope this already being documented somewhere but I could not find
it.
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
4 Likes
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:
pages/file_name_test_3.org
But, what I was asking is that the file name is formatted as:
pages/20201223144105.org
I’ve tried :date-formatter "yyyy-MM-dd",
and re-indexed the data
base, but it still not the desired filename format.
tienson
December 24, 2020, 4:13am
5
Yes, it’s not supported yet.
1 Like
tienson
December 24, 2020, 5:25am
6
@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
1 Like
That’s perfectly fine. No worry, no rush, enjoy the coding.
1 Like
Any update on this? Or is it possible via plugin, as I don’t mind code it by myself.