First, this new issue is as a result of not getting a workable answer for my previous issue, found here.
I didn’t get to spend much time on it, so I decided to throw in the towel, at least on the tags: #TODO and #DONE. I still have hundreds of other tags (stock symbols mostly) that I’ll deal with some other time separately.
Anyway, I used sed to change every instance of #TODO to “[ ]” and every instance of #DONE to “[x]”. So far, so good.
Then I copied the following block from the documentation:
${template.each(query[[
from index.tag “task”
where not _.done
limit 3
]], templates.taskItem)}
Sure enough, that worked and showed me my previous #TODOs.
But, clicking on one of them showed me a check mark, but didn’t strike through the text. Fine, but when I looked at the underlying file where the “[ ]” was originally, there was no “x” between the brackets (the template didn’t update the file when I clicked on it), so the next reload still showed the same item as not done. (I suspect I don’t know how the new templates are expected to work…)
When I type a brand new task using the “[ ]” syntax, it changes to the shaded box (correctly), and later clicking on it shows a check mark and strikes through all of the text (like I expect).
However, when visiting one of those to dos that was created programmatically (with the sed command), it’s not a shaded box and clicking on it puts an “x” in between the brackets (not a check mark), and only after I click away does it change to a check mark and strike through the text.
Long winded description of two separate (but possibly related) problems:
- The template query for tasks doesn’t seem to update the underlying file (at least not for tasks created by sed)
- Even in one of those files, it takes both a click, and clicking elsewhere to see the same behavior that I get in a manually created todo.
I suspect I’m missing something simple, but I don’t know what that is…

