Skip to content

Add grouping to the output of list #65

@Niatross

Description

@Niatross

When running the list command it would be useful to have the option to group the output by project and/or description and provide totals for each group.

An example output could be:

2025-02-10
Project A 5h 00m
09:00   10:00   task A            Project A                    1h 00m  
10:00   13:00   task B           Project A                     3h 00m  
15:00   16:00   task A           Project A                     1h 00m  

Project B 4h 30m
13:00   14:30   task A    Project B                               1h 30m  
13:00   14:30   task B     Project B                               1h 30m  
13:00   14:30   task A     Project B                               1h 30m  

Grouping by task and project could output

2025-02-10
Project A taskA 2h 00m
09:00   10:00   task A            Project A                    1h 00m  
15:00   16:00   task A           Project A                     1h 00m  

Project A taskB 3h 00m
10:00   13:00   task B           Project A                     3h 00m  

Project B task A 3h 00m
13:00   14:30   task A    Project B                               1h 30m  
13:00   14:30   task A     Project B                               1h 30m  

Project B task B 1h 30m
13:00   14:30   task B     Project B                               1h 30m  

I suggest adding the following flags
--group_project - gp
--group_description -gd

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions