Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address remaining review comments
Browse files Browse the repository at this point in the history
scross01 committed Jul 12, 2024
1 parent dfa08ca commit 7f8bef5
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bugwarrior/docs/services/logseq.rst
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ The Logseq task ``SCHEDULED:`` and ``DEADLINE:`` fields are mapped to the ``sche

``WAITING`` and ``WAIT`` are dynamically mapped to either ``pending`` or ``waiting`` states based on
the ``wait`` date. The ``SCHEDULED:`` date or ``DEADLINE`` date is used to set the ``wait`` date on the
task. If no scheduled or deadlines date is available then the wait date is set to ``someday``
task. If no scheduled or deadline date is available then the wait date is set to ``someday``
(see ``Date and Time Synonyms <https://taskwarrior.org/docs/dates/#synonyms-hahahugoshortcode30s0hbhb/>``_).
Future dated waiting tasks can be listed using ``task waiting``

12 changes: 6 additions & 6 deletions bugwarrior/services/logseq.py
Original file line number Diff line number Diff line change
@@ -167,7 +167,7 @@ def _compress_tag_format(self, tag):
)

# get an optimized and formatted title
def get_formated_title(self):
def get_formatted_title(self):
# use first line only and remove priority
first_line = (
self.record["content"]
@@ -183,12 +183,12 @@ def get_tags_from_content(self):
# this includes #tagname, but ignores tags that are in the #[[tag name]] format
tags = re.findall(
r"(#[^" + self.config.char_open_link + r"^\s]+)",
self.get_formated_title()
self.get_formatted_title()
)
# and this add teh #[[multi word]] formated tags
# and this adds the #[[multi word]] formatted tags
tags.extend(re.findall(
r"(#[" + self.config.char_open_link + r"].*[" + self.config.char_close_link + r"])",
self.get_formated_title()
self.get_formatted_title()
))
# compress format to single words
tags = [self._compress_tag_format(t) for t in tags]
@@ -269,13 +269,13 @@ def to_taskwarrior(self):
self.ID: self.record["id"],
self.UUID: self.record["uuid"],
self.STATE: self.record["marker"],
self.TITLE: self.get_formated_title(),
self.TITLE: self.get_formatted_title(),
self.URI: self.get_url(),
}

def get_default_description(self):
return self.build_default_description(
title=self.get_formated_title(),
title=self.get_formatted_title(),
url=self.get_url() if self.config.inline_links else '',
number=self.record["id"],
cls="issue",

0 comments on commit 7f8bef5

Please sign in to comment.