Revert "feat(views): add hide_done_categories config option (#153)"
This reverts commit 283f93eda1.
This commit is contained in:
parent
6235b410ce
commit
573436e28e
6 changed files with 4 additions and 123 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue