diff options
author | Aaron Ball <nullspoon@oper.io> | 2022-04-14 17:48:15 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2022-04-14 17:48:15 -0600 |
commit | 9c8ca4daaaa6a163cbb559643254e6404be8bcd3 (patch) | |
tree | 29084ec84c3ad7be231ce67301a929d4377ac413 /README.md | |
download | dailyjournal-9c8ca4daaaa6a163cbb559643254e6404be8bcd3.tar.gz dailyjournal-9c8ca4daaaa6a163cbb559643254e6404be8bcd3.tar.xz |
Initial commit of source, readme, template, and license
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..0ff571f --- /dev/null +++ b/README.md @@ -0,0 +1,47 @@ +# README + +Dailyjournal is a simple application to quickly open notes for the activities +of each day. The journal entries are automatically named so they are consistent +and predictable. If dailyjournal is run and no entry for the day exists, one is +created from the journal template file; if an entry does exist for today, it is +reopened for editing. + +## Setup + +To get set up, you will need to copy the journal entry template file from +`/usr/share/dailyjournal/template.md` to +`~/Documents/dailyjournal/.template.md` (unless you have overridden the default +path with the environment variables listed below or unless you want to write +your own template from scratch). Update this template file as needed and then +run `dailyjournal` to start writing! + +## Usage + +``` +dailyjournal [+/-<days>] +``` + +For the most simple usage, type `dailyjournal` to open today's journal. + +To open yesterday's entry, type `dailyjournal -1`, and to open two days ago +type `dailyjournal -2`, etc. + +Note that when using negative numbers, dailyjournal does not calculate days, +rather entries. In other words, `-1` is not one day ago, but one entry ago. +This is to make it easier to open previous entries without needing to know how +many days back they are. + +For example, if it is Monday and you want to open Friday's entry, and no +entries were made over the weekend, type `dailyjournal -1` and Friday's entry +will be opened (1 entry back). Continuing in this scenario, if an entry exists +on Thursday, typing `dailyjournal -2` on Monday will open Thursday's entry +(again, assuming no weekend entries are present). Friday is one back, Thursday +is two back, Wednesday is three back, etc. + +## Environment variables + +* **DAILYJOURNAL_DIR**: Path within which to store daily entries (Default: + `~/Documents/dailyjournal`) +* **DAILYJOURNAL_TEMPLATE**: Path to the daily journal template file which is + copied into place on new entry creation. (Default: + `DAILYJOURNAL_DIR/.template.md`) |