diff --git a/CHANGELOG.md b/CHANGELOG.md index 321712ff..a44755dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,17 @@ Changelog ========= +### 1.3.0 + +* [New] Export to multiple files +* [New] Feature to export to given output file + #### 1.1.2 * [Fixed] Timezone support for DayOne #### 1.1.1 -* [New] Export to multiple files -* [New] Feature to export to given output file * [Fixed] Unicode and Python3 issues resolved. ### 1.1.0 diff --git a/README.md b/README.md index 3d6492cf..58a03d6d 100644 --- a/README.md +++ b/README.md @@ -142,15 +142,20 @@ Prettyprints your entire journal. ### Export to files - jrnl --export md -o journal +You can specify the output file of your exported journal using the `-o` argument: -The above command will generate a file named `journal.md`. The extension will be generated on the type of export option. This way a json export will generate a `.json` file and a plain text export will generate a `.txt` file. + jrnl --export md -o journal.md -In case you wish to export to multiple files, you can use a glob-able filename. +The above command will generate a file named `journal.md`. If the `-o` argument is a directory, jrnl will export each entry into an individual file: - jrnl --export markdown -o %C-%m-%d_slug + jrnl --export json -o my_entries/ -It also works with `json` and `text` export types. +The contents of `my_entries/` will then look like this: + + my_entries/ + |- 2013_06_03_a-beautiful-day.json + |- 2013_06_07_dinner-with-gabriel.json + |- ... Encryption ----------