A daily journal plugin for nvim-orgmode.
In this example, we're using lazy.nvim as our package manager and including org-journal.nvim as a dependency of nvim-orgmode:
{
"nvim-orgmode/orgmode",
dependencies = {
{
"productivitykit/org-journal.nvim",
cmd = "OrgJournal"
}
}
}Open the current journal entry:
:OrgJournal- Creates journal files organized by date
- Automatically creates parent directories as needed
- Supports all
os.date()format codes:%Y,%m,%d,%A,%B, etc.
To customize the behavior, call setup() with your desired options:
org_journal_dir: Directory where journal files are storedorg_journal_file_format: Date format for journal filenamesorg_journal_file_template: Template content inserted into new journal files (supports date formatting)
Default configuration:
require('org-journal').setup({
org_journal_dir = '~/orgfiles/journal/',
org_journal_file_format = '%Y/%m/%d.org',
org_journal_file_template = '* %Y-%m-%d',
})