neorg icon indicating copy to clipboard operation
neorg copied to clipboard

Title in journal's metadata should contain year and month

Open chnoack opened this issue 5 months ago • 1 comments

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

chnoack avatar Jun 13 '25 12:06 chnoack

This probably would be solved also together with: https://github.com/nvim-neorg/neorg/issues/714

chnoack avatar Jun 13 '25 12:06 chnoack

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',
  },
},

gim- avatar Aug 24 '25 09:08 gim-

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

benlubas avatar Oct 03 '25 23:10 benlubas