Skip to content

Commit

Permalink
feat(todo_items): convert TODO item to "on hold" if all items are don…
Browse files Browse the repository at this point in the history
…e but the rest are on hold (#1339)
  • Loading branch information
vhyrro committed Mar 24, 2024
1 parent 2180f6b commit c32b238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/neorg/modules/core/qol/todo_items/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ module.public = {

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

0 comments on commit c32b238

Please sign in to comment.