pending.nvim/lua/pending
Barrett Ruth 127c5d4ef7 feat(views): make queue view sort order configurable
Problem: the queue/priority view sort in `sort_tasks_priority()` uses a
hardcoded tiebreak chain (status, priority, due, order, id). Users who
care more about due dates than priority have no way to reorder it.

Solution: add `view.queue.sort` config field (string[]) that defines an
ordered tiebreak chain. `build_queue_comparator()` maps each key to a
comparison function and returns a single comparator. Unknown keys emit a
`log.warn`. The default matches the previous hardcoded behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:08:41 -04:00
..
sync refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
buffer.lua fix(forge): fix ghost extmarks, false auth warnings, and needless API calls (#136) 2026-03-10 23:28:52 -04:00
complete.lua refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
config.lua feat(views): make queue view sort order configurable 2026-03-12 20:08:41 -04:00
diff.lua fix(parse): skip forge refs in right-to-left metadata scan (#142) 2026-03-11 13:02:55 -04:00
forge.lua refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
health.lua refactor(forge): simplify auth gating (#139) 2026-03-11 12:28:22 -04:00
init.lua refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
log.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
parse.lua fix(parse): skip forge refs in right-to-left metadata scan (#142) 2026-03-11 13:02:55 -04:00
recur.lua refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
store.lua refactor: tighten LuaCATS annotations and canonicalize metadata fields (#141) 2026-03-11 12:55:36 -04:00
textobj.lua fix(diff): preserve due/rec when absent from buffer line (#68) 2026-03-05 12:46:54 -05:00
views.lua feat(views): make queue view sort order configurable 2026-03-12 20:08:41 -04:00