# Journal 2026

## 7 derniers jours

${query[[
  from p = index.pages() 
  where string.startsWith(p.name, '01_JOURNAL/2026/') 
  order by p.name 
  desc limit 7
  select {
    DAY = "[[" .. p.ref .. "]]",
    MODIFIED = string.split(p.lastModified, "T")[1] .. " " .. string.sub(string.split(p.lastModified, "T")[2], 1, 5),
    TAGS = p.tags
  }  
]]}

## Tâches à traiter (state = REVIEW)

${query[[
  from i = index.tasks() 
  where i.state == 'REVIEW'
  order by i.text desc 
  limit 10
  select {
    REF = "[[" .. i.ref .. "]]",
    TEXT =  i.text,
    TAGS = i.tags
  }
]]}


## Tâches planifiées 

### Aujourd’hui

${query[[
  from t = index.tasks()
  where t.done == false 
    and t.planned and t.planned == date.today()
  order by t.planned asc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.name,
    TAGS = t.tags,
    PLANNED = t.planned
  }
]]}

### Passées

${query[[
  from t = index.tasks()
  where t.done == false 
    and t.planned and t.planned < date.today()
  order by t.planned desc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.name,
    TAGS = t.tags,
    PLANNED = t.planned
  }
]]}

### A venir

${query[[
  from t = index.tasks()
  where t.done == false 
    and t.planned and t.planned > date.today()
  order by t.planned asc 
  limit 10
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT =  t.name,
    TAGS = t.tags,
    PLANNED = t.planned
  }
]]}


## Tâches non planifiées

${query[[
  from t = index.tasks()
  where not t.done 
   and not t.planned
   and t.state != 'REVIEW'
  order by t.text desc 
  limit 100
  select {
    REF = "[[" .. t.ref .. "]]",
    TEXT = t.name,
    TAGS = t.tags,
    DONE = t.done,
    STATE = t.state
  }
]]}
