Skip to content

Effort Formatters

Effort Icon

This formatter shows an icon for todos that have effort enabled

Param
Default
Description
icon󰈸The icon to show for todos with effort
colorNoneThe color to use for the icon. If not provided, uses the theme's orange color
show_on_zeroTrueWhether to show the icon when effort is 0
python

from dooit_extras.formatters import effort_icon
from dooit.ui.api import DooitAPI, subscribe
from dooit.ui.api.events import Startup

@subscribe(Startup)
def setup(api: DooitAPI, _):
    # ...
    api.formatter.todos.effort.add(effort_icon())
    # ...