Home

Awesome

Logseq Plugin TODO Master

A simple plugin to render a progress bar to gather the overall progress of the TODO markers based on the rendering position.

Usage

Use slash command [TODO Master] Add Progress Bar to add a progress bar macro {{renderer :todomaster}} . The progress will be calculated based on the position of the macro.

Tips

Since this macro {{renderer :todomaster}} will display progress based on the rendering block, you can place it in the journal template, or in a query block title. Here are some examples:

Add TODO Master into the page's properties

progress:: {{renderer :todomaster}}

Add TODO Master into the query block's title

#+BEGIN_QUERY
{:title "{{renderer :todomaster}}"
    :query [:find (pull ?h [*])
            :in $ ?start ?next
            :where
            [?h :block/marker ?marker]
            [?h :block/refs ?p]
            [?p :block/journal? true]
            [?p :block/journal-day ?d]
            [(> ?d ?start)]
            [(< ?d ?next)]]
    :inputs [:today :7d-after]
    :collapsed? false}
#+END_QUERY