Skip to content

Commit

Permalink
feat: add url-scheme link to task in Things (#16)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kevinjalbert authored May 22, 2021
1 parent 4527594 commit ad65d76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ad65d76

Please sign in to comment.