diff --git a/jrnl/Journal.py b/jrnl/Journal.py index 7c680b21..9a7767e8 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -54,6 +54,7 @@ class Journal(object): consts.DOWParseStyle = -1 # "Monday" will be either today or the last Monday self.dateparse = pdt.Calendar(consts) self.key = None # used to decrypt and encrypt the journal + self.search_tags = None # Store tags we're highlighting journal_txt = self.open() self.entries = self.parse(journal_txt) diff --git a/jrnl/jrnl.py b/jrnl/jrnl.py index ef78840b..256075ce 100755 --- a/jrnl/jrnl.py +++ b/jrnl/jrnl.py @@ -176,14 +176,15 @@ def cli(manual_args=None): entry.starred = args.star util.prompt("[Entry added to {0} journal]".format(journal_name)) journal.write() - - # Reading mode - elif not mode_export: + else: journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date, strict=args.strict, short=args.short) journal.limit(args.limit) + + # Reading mode + if not mode_export: print(journal.pprint()) # Various export modes