Revert "feat(views): add hide_done_categories config option (#153)"

This reverts commit 283f93eda1.
This commit is contained in:
Barrett Ruth 2026-03-12 20:41:32 -04:00
parent b2456580b5
commit 5ab0aa78a1
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
6 changed files with 4 additions and 123 deletions

View file

@ -27,8 +27,6 @@ local _filter_predicates = {}
---@type table<integer, true>
local _hidden_ids = {}
---@type table<integer, true>
local _done_cat_hidden_ids = {}
---@type table<integer, true>
local _dirty_rows = {}
---@type boolean
local _on_bytes_active = false
@ -76,11 +74,6 @@ function M.hidden_ids()
return _hidden_ids
end
---@return table<integer, true>
function M.done_cat_hidden_ids()
return _done_cat_hidden_ids
end
---@param predicates string[]
---@param hidden table<integer, true>
---@return nil
@ -701,13 +694,10 @@ function M.render(bufnr)
end
local lines, line_meta
_done_cat_hidden_ids = {}
if current_view == 'priority' then
lines, line_meta = views.priority_view(tasks)
else
local done_cat_hidden
lines, line_meta, done_cat_hidden = views.category_view(tasks)
_done_cat_hidden_ids = done_cat_hidden
lines, line_meta = views.category_view(tasks)
end
if #lines == 0 and #_filter_predicates == 0 then