I would like to change the way tasks render in queries, so that the link to the page where the task was created is displayed as an asterisk.
I was able to get them to render that way pretty easily:
function render_task_list(tasks)
local task_template = template.new("- [${state}] ${name} [*](</${ref}>)\n")
return widget.new{
markdown=template.each(tasks, task_template)
}
end
This looks like what I want:
But now, when I check off tasks in the query view, they arent actually updated. Refreshing the query or visiting the ref page shows the task in its original state.
If I change my template to use the full link text, like this, it works again:
But those file names are cluttery and not very useful!
Im sure theres some underlying script at work here - can we customize it?