From 4898759b8be92673f1d0fe8867f6387e8884a31d Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 11 Jun 2012 16:16:26 +0200 Subject: [PATCH] Help on multiple journals. --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0515f4ab..115fef5d 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ The first time launched, _jrnl_ will create a file called `.jrnl_config` in your The configuration file is a simple JSON file with the following options. - - `journal`: path to your journal file + - `journals`: path to your journal files - `editor`: if set, executes this command to launch an external editor for writing your entries, e.g. `vim` or `subl -w` (note the `-w` flag to make sure _jrnl_ waits for Sublime Text to close the file before writing into the journal). - `encrypt`: if `true`, encrypts your journal using AES. - `password`: you may store the password you used to encrypt your journal in plaintext here. This is useful if your journal file lives in an unsecure space (ie. your Dropbox), but the config file itself is more or less safe. @@ -117,6 +117,17 @@ The configuration file is a simple JSON file with the following options. > > Or use the built-in prompt or an external editor to compose your entries. +### Multiple journal files + +You can configure _jrnl_ to use with multiple journals (eg. `private` and `work`) by defining more journals in your `.jrnl_config`, for example: + + "journals": { + "default": "~/journal.txt", + "work": "~/work.txt" + }, + +The `default` journal gets created the first time you start _jrnl_. Now you can access the `work` journal by using `jrnl work` instead of `jrnl`, eg. `jrnl work at 10am: Meeting with @Steve" or `jrnl work -n 3` will use `~/work.txt`, while `jrnl -n 3` will display the last three entries from `~/journal.txt` (and so does `jrnl default -n 3`). + ### JSON export Can do: