V2 Query Guide for v1 Users

This should be a “start” help for users, who migrate from v1 or new v2 users for queries

Tasks queries

Hint: Check dd-MM-yyyy - maybe its yyyy-MM-dd

## Overdue Tasks
${template.each(
query[[
  from index.tag 'task' where deadline < os.date('%dd-%MM-%yyyy')
  and not done
]],
templates.taskItem
)}

## Open Tasks
${template.each(
query[[
  from index.tag 'task' where not table.includes(itags, 'meta')
  and not done
]],
templates.taskItem
)}

## Tasks Daily
${template.each(
query[[
  from index.tag 'task'
  where not done and table.includes(itags, "daily")
]], 
templates.taskItem
)}

Footer queries

(howto show open tasks in footer?)

Quick notes

(button for quick notes and a quick note list from last 10 notes)

1 Like

If you have cool queries, please poste and I will update the first post to make it easier for new users

Pending tasks at the bottom (probably not the best solution at all, quite complex but showing few interesting things, it also doesn’t use templating, tasks cannot be switched from the resulting listing). Below the “howto” there is second file with code prepared to be placed somewhere in the space to see it working.