ja-he / dayplan

A utility to plan and track your time.
MIT License
5 stars 1 forks source link

Implement Subcategories #15

Open ja-he opened 2 years ago

ja-he commented 2 years ago

I want to have categories be hierarchical, so that a category can have a parent category (which can have a parent category, etc.)

Syntactically I think :: would make the most sense. You'd have e.g. a category uni::math::calculus::weep that allows you to track all the time you spend weeping in relation to your calc class, categorized as math as part of your university curriculum. The upside would be that you could track as granularly as you wanted and still maintain categorization e.g. to get easy high-level summaries.

So if you have the following time totals tracked:

then the total for summarizing by uni would be 35h, the total for summarizing by uni::math would be 25.

ja-he commented 1 year ago

Alternatively: go more into the regex-direction: