Skip to content

Commit

Permalink
feat(qol.todo_items): when only done and uncertain items are present in
Browse files Browse the repository at this point in the history
a sublist the parent item is marked as "on hold"
  • Loading branch information
vhyrro committed Feb 7, 2023
1 parent e045f7a commit 1d6b0b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neorg/modules/core/norg/qol/todo_items/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ module.public = {

local resulting_char = ""

if counts.pending > 0 then
if counts.uncertain > 0 and counts.done + counts.uncertain == counter then
resulting_char = "="
elseif counts.pending > 0 then
resulting_char = "-"
elseif counter == counts.done then
resulting_char = "x"
Expand Down

0 comments on commit 1d6b0b0

Please sign in to comment.