Problem: no way to know about overdue or due-today tasks without opening :Pending. No ambient awareness for statusline plugins. Solution: add counts(), statusline(), and has_due() public API functions backed by a module-local cache that recomputes after every store.save() and store.load(). Fire a User PendingStatusChanged event on every recompute. Extract is_overdue() and is_today() from duplicate locals into parse.lua as public functions. Refactor views.lua and init.lua to use the shared date logic. Add vimdoc API section and integration recipes for lualine, heirline, manual statusline, startup notification, and event-driven refresh. |
||
|---|---|---|
| .. | ||
| archive_spec.lua | ||
| complete_spec.lua | ||
| diff_spec.lua | ||
| helpers.lua | ||
| parse_spec.lua | ||
| recur_spec.lua | ||
| status_spec.lua | ||
| store_spec.lua | ||
| views_spec.lua | ||