From 877c6783fe3ae1f7483dc252e1f2c64f526bff63 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 26 Nov 2022 07:57:00 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[todoist2org]=20Add=20project=20nam?= =?UTF-8?q?e=20as=20file=20category?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- todoist2org/todoist2org.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/todoist2org/todoist2org.py b/todoist2org/todoist2org.py index 0a871c9..d76761e 100644 --- a/todoist2org/todoist2org.py +++ b/todoist2org/todoist2org.py @@ -146,10 +146,12 @@ def parse_project(project, parent_project_name=""): if parent_project_name and project.parent_id: 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) path = f"{output_dir}/{parent_filename}_{filename}" else: content.append(f"#+title: {project.name}") + content.append(f"#+category: {project.name}") path = f"{output_dir}/{filename}" if not project.parent_id: