From 5a13046dc58309e59b8e757854dd84231cee16ef Mon Sep 17 00:00:00 2001 From: Ben Lubas Date: Tue, 18 Jun 2024 11:24:55 -0400 Subject: [PATCH] feat!(journal): periodic & multiple journals --- lua/neorg/modules/core/journal/module.lua | 681 +++++++++++++++------- lua/neorg/modules/core/tempus/module.lua | 30 + 2 files changed, 504 insertions(+), 207 deletions(-) diff --git a/lua/neorg/modules/core/journal/module.lua b/lua/neorg/modules/core/journal/module.lua index 17a78bbfd..0118bed87 100644 --- a/lua/neorg/modules/core/journal/module.lua +++ b/lua/neorg/modules/core/journal/module.lua @@ -4,87 +4,118 @@ description: The journal module allows you to take personal notes with zero friction. summary: Easily track a journal within Neorg. --- -The journal module exposes a total of six commands. -The first three, `:Neorg journal today|yesterday|tomorrow`, allow you to access entries -for a given time relative to today. A file will be opened with the respective date as a `.norg` file. - -The fourth command, `:Neorg journal custom`, allows you to specify a custom date as an argument. -The date must be formatted according to the `YYYY-mm-dd` format, e.g. `2023-01-01`. - -The `:Neorg journal template` command creates a template file which will be used as the base whenever -a new journal entry is created. - -Last but not least, the `:Neorg journal toc open|update` commands open or create/update a Table of Contents -file found in the root of the journal. This file contains links to all other journal entries, alongside -their titles. +Journals are "periodic" in Neorg. You can have a daily journal, a weekly journal, a quarterly +journal, etc, (or all of them at once). The `daily` journal is the default, and Neorg ships with +`daily`, `weekly`, `monthly`, and `yearly` journals already defined. + +### Commands: + +The main commands are: `:Neorg journal previous|current|next `, where `` is the name of +a periodic journal--either one of the pre-defined journal names mentioned above, or a custom name +added in configuration. Eliding `name` will use the default journal (usually `daily` but this is +configurable) + +Additionally, you can specify a custom date with `:Neorg journal custom `. The date +can be either: +- a date in `YYYY-mm-dd` format, e.g. `2023-01-01` +- a date in the Norg date format: `?,? -?