diff --git a/CHANGELOG.md b/CHANGELOG.md index e27814bf..e9563f6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +### 1.4.1 + +* [Fixed] Tagging works again + ### 1.4.0 * [Improved] Unifies encryption between Python 2 and 3. If you have problems reading encrypted journals afterwards, first decrypt your journal with the __old__ jrnl version (install with `pip install jrnl==1.3.1`, then `jrnl --decrypt`), upgrade jrnl (`pip install jrnl --upgrade`) and encrypt it again (`jrnl --encrypt`). diff --git a/jrnl/Entry.py b/jrnl/Entry.py index e8da761b..5fbdeb15 100644 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -16,6 +16,7 @@ class Entry: def parse_tags(self): fulltext = " ".join([self.title, self.body]).lower() tags = re.findall(r'(?u)([{tags}]\w+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE) + self.tags = tags return set(tags) def __unicode__(self): diff --git a/jrnl/__init__.py b/jrnl/__init__.py index d41e846b..e6c3253f 100644 --- a/jrnl/__init__.py +++ b/jrnl/__init__.py @@ -7,7 +7,7 @@ jrnl is a simple journal application for your command line. """ __title__ = 'jrnl' -__version__ = '1.4.0' +__version__ = '1.4.1' __author__ = 'Manuel Ebert' __license__ = 'MIT License' __copyright__ = 'Copyright 2013 Manuel Ebert' diff --git a/jrnl/exporters.py b/jrnl/exporters.py index 4e2a9492..42126802 100644 --- a/jrnl/exporters.py +++ b/jrnl/exporters.py @@ -32,7 +32,7 @@ def to_tag_list(journal): elif min(tag_counts)[0] == 0: tag_counts = filter(lambda x: x[0] > 1, tag_counts) result += '[Removed tags that appear only once.]\n' - result += "\n".join(u"{0:20} : {1}".format(tag, n) for n, tag in sorted(tag_counts, reverse=False)) + result += "\n".join(u"{0:20} : {1}".format(tag, n) for n, tag in sorted(tag_counts, reverse=True)) return result def to_json(journal):