neorg
neorg copied to clipboard
Title in journal's metadata should contain year and month
Issues
- [x] I have checked existing issues and there are no existing ones with the same request.
Feature description
When I inject meta data to a journal page currently the title corresponds to the single file name: e.g. for a journal file journal/2025/06/01.norg the title is automatically set to 01. I think it would be nicer to have it set to the whole data in ISO format: 2025-06-01
Help
Yes, but I don't know how to start. I would need guidance
Implementation help
No response
This probably would be solved also together with: https://github.com/nvim-neorg/neorg/issues/714
As a workaround you can switch to flat strategy, then journals will be created in "yyyy-mm-dd.norg" format and the generated metadata will be correct.
['core.journal'] = {
config = {
strategy = 'flat',
},
},
I always recommend templating your journal entries (or any repeated notes) with https://github.com/pysan3/neorg-templates
If you don't want something this fancy the default metagen logic is configurable. You can pass your own template with your own function that generates the title