• v1.4.0 de1a4a2849

    categulario released this 2022-08-31 07:19:23 -05:00 | 95 commits to main since this release

    Now in 1.4.0:

    Chart formatter

    Captura_desde_2022-08-31_08-47-41

    Displays a nice chart of the weekly progress. To use pass --format chart (or -f chart for short) to any display command:

    t w -f chart

    Settings

    By default this formatter will only display a nice chart of the progress divided
    by week and respecting the week_start setting. However you may specify a daily
    goal and a weekly goal to customize the chart, as well as how many minutes each
    character represents:

    In toml:

    [formatters.chart]
    daily_goal_hours = 4
    weekly_goal_hours = 20
    character_equals_minutes = 30
    

    In yaml:

    formatters:
      chart:
        daily_goal_hours: 4
        weekly_goal_hours: 20
        character_equals_minutes: 30
    

    Per-command default formatters:

    It might be the case that you want to use one default formatter for when you use
    t week and a different one for t month or t today. That's what per-command
    default formatters are for. To use them just add a commands section to your
    config file and set default_formatter on some formatters. This is what it
    would look like:

    In toml

    [commands.week]
    default_formatter = "chart"
    
    [commands.month]
    default_formatter = "ical"
    

    In yaml

    commands:
      week:
        default_formatter: chart
      month:
        default_formatter: ical
    
    Downloads