mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Changelog, dogs
This commit is contained in:
parent
c283a328e0
commit
91fd821bcc
4 changed files with 24 additions and 6 deletions
|
@ -2,9 +2,10 @@ Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
|
||||||
### 1.7 (December 1, 2013)
|
### 1.7 (December 22, 2013)
|
||||||
|
|
||||||
* __1.7.0__ Edit encrypted journals with `--edit` and `--delete`. Deprecates `--delete-last` (use `-n 1 --delete` instead).
|
* __1.7.1__ Fixes issues with parsing time information in entries.
|
||||||
|
* __1.7.0__ Edit encrypted or DayOne journals with `jrnl --edit`.
|
||||||
|
|
||||||
|
|
||||||
### 1.6 (November 5, 2013)
|
### 1.6 (November 5, 2013)
|
||||||
|
|
|
@ -88,16 +88,34 @@ the last five entries containing both ``@pineapple`` **and** ``@lubricant``. You
|
||||||
Editing older entries
|
Editing older entries
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
You can edit selected entries after you wrote them. This is particularly useful when your journal file is encrypted or if you're using a DayOne journal. To use this feature, you need to have an editor configured in your journal configuration file (see :doc:`advanced usage <advanced>`):
|
You can edit selected entries after you wrote them. This is particularly useful when your journal file is encrypted or if you're using a DayOne journal. To use this feature, you need to have an editor configured in your journal configuration file (see :doc:`advanced usage <advanced>`)::
|
||||||
|
|
||||||
jrnl -until 1950 @texas -and @history --edit
|
jrnl -until 1950 @texas -and @history --edit
|
||||||
|
|
||||||
Will open your editor with all entries tagged with ``@texas`` and ``@history`` before 1950. You can make any changes to them you want; after you save the file and close the editor, your journal will be updated.
|
Will open your editor with all entries tagged with ``@texas`` and ``@history`` before 1950. You can make any changes to them you want; after you save the file and close the editor, your journal will be updated.
|
||||||
|
|
||||||
Of course, if you are using multiple journals, you can also edit e.g. the entry of your work journal with ``jrnl work -n 1 --edit``. In any case, this will bring up your editor and save (and, if applicable, encrypt) your edited journal after you save and exit the editor.
|
Of course, if you are using multiple journals, you can also edit e.g. the latest entry of your work journal with ``jrnl work -n 1 --edit``. In any case, this will bring up your editor and save (and, if applicable, encrypt) your edited journal after you save and exit the editor.
|
||||||
|
|
||||||
You can also use this feature for deleting entries from your journal::
|
You can also use this feature for deleting entries from your journal::
|
||||||
|
|
||||||
jrnl @girlfriend -until 'june 2012' --edit
|
jrnl @girlfriend -until 'june 2012' --edit
|
||||||
|
|
||||||
Just select all text, press delete, and everything is gone...
|
Just select all text, press delete, and everything is gone...
|
||||||
|
|
||||||
|
Editing DayOne Journals
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
DayOne journals can be edited exactly the same way, however the output looks a little bit different because of the way DayOne stores its entries:
|
||||||
|
|
||||||
|
.. code-block:: output
|
||||||
|
|
||||||
|
# af8dbd0d43fb55458f11aad586ea2abf
|
||||||
|
2013-05-02 15:30 I told everyone I built my @robot wife for sex.
|
||||||
|
But late at night when we're alone we mostly play Battleship.
|
||||||
|
|
||||||
|
# 2391048fe24111e1983ed49a20be6f9e
|
||||||
|
2013-08-10 03:22 I had all kinds of plans in case of a @zombie attack.
|
||||||
|
I just figured I'd be on the other side.
|
||||||
|
|
||||||
|
The long strings starting with hash symbol are the so-called UUIDs, unique identifiers for each entry. Don't touch them. If you do, then the old entry would get deleted and a new one written, which means that you could DayOne loose data that jrnl can't handle (such as as the entry's geolocation).
|
||||||
|
|
||||||
|
|
|
@ -375,7 +375,6 @@ class DayOne(Journal):
|
||||||
}
|
}
|
||||||
plistlib.writePlist(entry_plist, filename)
|
plistlib.writePlist(entry_plist, filename)
|
||||||
for entry in self._deleted_entries:
|
for entry in self._deleted_entries:
|
||||||
print "DELETING", entry.uuid, entry.title
|
|
||||||
filename = os.path.join(self.config['journal'], "entries", entry.uuid+".doentry")
|
filename = os.path.join(self.config['journal'], "entries", entry.uuid+".doentry")
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ jrnl is a simple journal application for your command line.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__title__ = 'jrnl'
|
__title__ = 'jrnl'
|
||||||
__version__ = '1.7.0'
|
__version__ = '1.7.1'
|
||||||
__author__ = 'Manuel Ebert'
|
__author__ = 'Manuel Ebert'
|
||||||
__license__ = 'MIT License'
|
__license__ = 'MIT License'
|
||||||
__copyright__ = 'Copyright 2013 Manuel Ebert'
|
__copyright__ = 'Copyright 2013 Manuel Ebert'
|
||||||
|
|
Loading…
Add table
Reference in a new issue