# Rando
status: archived

## Todo

### Urgent
${TaskManager(query[[from o = index.tag "task" where not o.done and table.includes(o.itags, 'URGENT')
and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") order by o.name limit 20]], {
  {"Tags", "tags", "string"},
  --{"Priority", "priority", "string"},
  --{"Due Date", "due", "YY-MM-DD"},
  --{"Scheduled", "scheduled", "date"},
  --{"Completed", "completed", "dateTime"},
  --{"Estimate", "est", "string"}
})}

### Next
${TaskManager(query[[from o = index.tag "task" where not o.done and table.includes(o.itags, 'next')
and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") order by o.name limit 20]], {
  {"Tags", "tags", "string"},
  --{"Priority", "priority", "string"},
  --{"Due Date", "due", "YY-MM-DD"},
  --{"Scheduled", "scheduled", "date"},
  --{"Completed", "completed", "dateTime"},
  --{"Estimate", "est", "string"}
})}

### Other
${TaskManager(query[[from o = index.tag "task" where not o.done and not table.includes(o.itags, 'URGENT') and not table.includes(o.itags, 'next') and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") order by o.name limit 20]], {
  {"Tags", "tags", "string"},
  --{"Priority", "priority", "string"},
  --{"Due Date", "due", "YY-MM-DD"},
  --{"Scheduled", "scheduled", "date"},
  --{"Completed", "completed", "dateTime"},
  --{"Estimate", "est", "string"}
})}

### Done
${TaskManager(query[[from o = index.tag "task" where o.done and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") order by o.completed limit 20]], {
  {"Tags", "tags", "string"},
  --{"Priority", "priority", "string"},
  --{"Due Date", "due", "YY-MM-DD"},
  --{"Scheduled", "scheduled", "date"},
  --{"Completed", "completed", "dateTime"},
  --{"Estimate", "est", "string"}
})}

## Evénements
${query[[from o = index.tag "header" where table.includes(o.tags, "event")
and string.find(string.gsub(o.name, '%-', '_'), "%[%[" .. string.gsub(_CTX.currentPage.name, '%-', '_') .. "%]%]") order by o.page desc limit 10 select table.select(o, 'ref', 'name')]]}
