Query annotator, to add comments to the output of queries (including Dataview, tasks…)

Maybe this is a dumb idea, I don’t know, and I’m sorry it it is. I’ve been looking at forum threads and plugins such as Comments but I didn’t see anything that I could use or relate to.

Many times I’m in a situation where my notes fetch their content dynamically through Dataview or Tasks queries and I’d like to add some comment to the output, but the only way to do it is, of course, to modify the note that is being called, when just want to comment this very actualisation of the note.

One example of this is the daily events section in my daily note. I have a section with a dataviewjs query that looks for Full Calendar event notes for that day and displays them as a list. Like this:


  • 11:00-12:00 Meeting with X
  • 12:30-13:30 Lunch with Y

It works, but sometimes I’d like to add a comment on a line that would only be relevant in the current note, such as:


  • 11:00-12:00 Meeting with X [^1]
  • 12:30-13:30 Lunch with Y [^2]

[^1]: don’t be late this time!
[^2]: postpone ?



11:00-12:00 Meeting with X — don’t be late this time! —
12:30-13:30 Lunch with Y — postpone? —

I know I can just edit the “Meeting with X” note’s title, but suppose that event is recurring and happens every week, and I want to add my note only to the rendering of it that is in that day’s note.

Another example would be with tasks:

  • Do this thing [should I keep it for next week?]

If I see this same comment attached to this task every day, I’ll end up never doing the task… You get the idea.

Of course it wouldn’t have to be a footnote or inline comment, it could be any convenient way to add some information to a rendered note. I have no idea how that could work, but I know I’d use it.