This commit is contained in:
parent
b8ecb5da25
commit
a39f6141c7
|
@ -33,6 +33,7 @@ class FavroStat(fuse.Stat):
|
||||||
CARD_FILENAME_FORMAT = 'PAR-{seq_id}.md'
|
CARD_FILENAME_FORMAT = 'PAR-{seq_id}.md'
|
||||||
CARD_FILENAME_REGEX = r'^\/PAR\-(\d+)\.md$'
|
CARD_FILENAME_REGEX = r'^\/PAR\-(\d+)\.md$'
|
||||||
|
|
||||||
|
OFFICIAL_URL='https://favro.com/organization/{org_id}?card=par-{seq_id}'
|
||||||
|
|
||||||
@dataclasses.dataclass(frozen=True)
|
@dataclasses.dataclass(frozen=True)
|
||||||
class Thing:
|
class Thing:
|
||||||
|
@ -184,6 +185,7 @@ class FavroFuse(fuse.Fuse):
|
||||||
tags,
|
tags,
|
||||||
assignments,
|
assignments,
|
||||||
dependencies,
|
dependencies,
|
||||||
|
url=OFFICIAL_URL.format(org_id=card.organization_id.raw_id, seq_id=card.seq_id.raw_id),
|
||||||
)
|
)
|
||||||
return self.formatter.format_card_contents(card_contents)
|
return self.formatter.format_card_contents(card_contents)
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@ class CardFileFormatter:
|
||||||
frontmatter_data = {}
|
frontmatter_data = {}
|
||||||
if card.name and self.obsidian_mode:
|
if card.name and self.obsidian_mode:
|
||||||
frontmatter_data['aliases'] = [card.name]
|
frontmatter_data['aliases'] = [card.name]
|
||||||
if card.tags:
|
|
||||||
frontmatter_data['tags'] = card.tags
|
frontmatter_data['tags'] = card.tags
|
||||||
|
frontmatter_data['url'] = card.url
|
||||||
if card.assignments:
|
if card.assignments:
|
||||||
frontmatter_data['assignments'] = card.assignments
|
frontmatter_data['assignments'] = card.assignments
|
||||||
if self.obsidian_mode:
|
if self.obsidian_mode:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user