ci: format
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
This commit is contained in:
parent
c04057dd9f
commit
0b0b64fc3d
3 changed files with 25 additions and 10 deletions
|
|
@ -1192,7 +1192,10 @@ function M.archive(arg)
|
|||
log.debug(('archive: days=%d cutoff=%s total_tasks=%d'):format(days, cutoff, #tasks))
|
||||
local count = 0
|
||||
for _, task in ipairs(tasks) do
|
||||
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
|
||||
if
|
||||
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
|
||||
and task['end']
|
||||
then
|
||||
if task['end'] < cutoff then
|
||||
count = count + 1
|
||||
end
|
||||
|
|
@ -1213,7 +1216,10 @@ function M.archive(arg)
|
|||
function()
|
||||
local kept = {}
|
||||
for _, task in ipairs(tasks) do
|
||||
if (task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled') and task['end'] then
|
||||
if
|
||||
(task.status == 'done' or task.status == 'deleted' or task.status == 'cancelled')
|
||||
and task['end']
|
||||
then
|
||||
if task['end'] < cutoff then
|
||||
goto skip
|
||||
end
|
||||
|
|
|
|||
|
|
@ -275,9 +275,9 @@ function M.category_view(tasks)
|
|||
category = cat,
|
||||
priority = task.priority,
|
||||
overdue = task.status ~= 'done'
|
||||
and task.status ~= 'cancelled'
|
||||
and task.due ~= nil
|
||||
and parse.is_overdue(task.due)
|
||||
and task.status ~= 'cancelled'
|
||||
and task.due ~= nil
|
||||
and parse.is_overdue(task.due)
|
||||
or nil,
|
||||
recur = task.recur,
|
||||
forge_spans = compute_forge_spans(task, prefix_len),
|
||||
|
|
@ -332,9 +332,9 @@ function M.priority_view(tasks)
|
|||
category = task.category,
|
||||
priority = task.priority,
|
||||
overdue = task.status ~= 'done'
|
||||
and task.status ~= 'cancelled'
|
||||
and task.due ~= nil
|
||||
and parse.is_overdue(task.due)
|
||||
and task.status ~= 'cancelled'
|
||||
and task.due ~= nil
|
||||
and parse.is_overdue(task.due)
|
||||
or nil,
|
||||
show_category = true,
|
||||
recur = task.recur,
|
||||
|
|
|
|||
|
|
@ -245,8 +245,17 @@ end, {
|
|||
for word in after_filter:gmatch('%S+') do
|
||||
used[word] = true
|
||||
end
|
||||
local candidates =
|
||||
{ 'clear', 'overdue', 'today', 'priority', 'done', 'pending', 'wip', 'blocked', 'cancelled' }
|
||||
local candidates = {
|
||||
'clear',
|
||||
'overdue',
|
||||
'today',
|
||||
'priority',
|
||||
'done',
|
||||
'pending',
|
||||
'wip',
|
||||
'blocked',
|
||||
'cancelled',
|
||||
}
|
||||
local store = require('pending.store')
|
||||
local s = store.new(store.resolve_path())
|
||||
s:load()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue