From 485dbca54e44d778b634dfd9baf713836b5f1bab Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 20 Dec 2022 11:23:32 +1000 Subject: [PATCH] custom template --- server/org_tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/org_tools.py b/server/org_tools.py index e9a53e3..57761b1 100644 --- a/server/org_tools.py +++ b/server/org_tools.py @@ -2,7 +2,7 @@ from datetime import datetime import re from typing import List, Optional -DEFAULT_TEMPLATE = "* %U %:description %:tags\n%:link\n%:initial\n" +DEFAULT_TEMPLATE = "\\%title: [[%:link|%:description]]\n%:tags\n%U\n\n\n%:link\n%:initial\n" # TODO reuse inorganic/orgparse?? def date2org(t: datetime) -> str: @@ -146,5 +146,3 @@ def test_templates(): org_template=org_template ) - print() - print(res)