✨ [todoist2org] Add project name as file category
This commit is contained in:
parent
c133b7068f
commit
877c6783fe
1 changed files with 2 additions and 0 deletions
|
@ -146,10 +146,12 @@ def parse_project(project, parent_project_name=""):
|
||||||
|
|
||||||
if parent_project_name and project.parent_id:
|
if parent_project_name and project.parent_id:
|
||||||
content.append(f"#+title: {parent_project_name}: {project.name}")
|
content.append(f"#+title: {parent_project_name}: {project.name}")
|
||||||
|
content.append(f"#+category: {parent_project_name}: {project.name}")
|
||||||
parent_filename = get_filename(parent_project_name, False)
|
parent_filename = get_filename(parent_project_name, False)
|
||||||
path = f"{output_dir}/{parent_filename}_{filename}"
|
path = f"{output_dir}/{parent_filename}_{filename}"
|
||||||
else:
|
else:
|
||||||
content.append(f"#+title: {project.name}")
|
content.append(f"#+title: {project.name}")
|
||||||
|
content.append(f"#+category: {project.name}")
|
||||||
path = f"{output_dir}/{filename}"
|
path = f"{output_dir}/{filename}"
|
||||||
|
|
||||||
if not project.parent_id:
|
if not project.parent_id:
|
||||||
|
|
Loading…
Reference in a new issue