mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
Tags at the beginning of lines
This commit is contained in:
parent
6dafc3d939
commit
db3de3d1cc
2 changed files with 21 additions and 10 deletions
|
@ -17,7 +17,7 @@ class Entry:
|
|||
self.modified = False
|
||||
|
||||
def parse_tags(self):
|
||||
fulltext = " ".join([self.title, self.body]).lower()
|
||||
fulltext = " " + " ".join([self.title, self.body]).lower()
|
||||
tags = re.findall(r'(?u)\s([{tags}][-+*#/\w]+)'.format(tags=self.journal.config['tagsymbols']), fulltext, re.UNICODE)
|
||||
self.tags = tags
|
||||
return set(tags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue