From 32965572f338d3fbf2f5c673810286d239e6ba77 Mon Sep 17 00:00:00 2001 From: Kevin Jalbert Date: Sat, 22 May 2021 15:45:30 -0400 Subject: [PATCH] feat: add url-scheme link to task in Things This adds a link to the task in Things itself via the url-scheme link: - [x] [Task title](things:///show?id=FCkSLvZ3FSKM7vxkDhjip7) This lets you click on the link and open the Things to the task itself. --- src/renderer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer.ts b/src/renderer.ts index 0c68980..d138936 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -25,8 +25,10 @@ export class LogbookRenderer { .map((tag) => `#${prefix}${tag}`) .join(" "); + const taskTitle = `[${task.title}](things:///show?id=${task.uuid}) ${tags}`.trimEnd() + return [ - `- [x] ${task.title} ${tags}`.trimEnd(), + `- [x] ${taskTitle}`, ...String(task.notes || "") .trimEnd() .split("\n")