Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: Tag analysis #19

Merged
merged 5 commits into from Feb 19, 2022
Merged

Conversation

uhrfra
Copy link
Contributor

@uhrfra uhrfra commented Feb 17, 2022

Feature description: This adds a new feature to generate statistics about the tags of all entry files. This provides a simple tool for habit tracking or track the progress of activities. As tags are interpreted from yaml syntax, it is possible to add a value to each tag: e.g. tags: [sport, running: 4.5] to add a tag sport and a tag running with a value for the distance. For this example tag analysis can give insight, how often you did sports every week or what distance was covered running every month.

Implementation: This PR adds a new tab 'Tag analysis' to the EntryExplorer, where you can enter a tag name and a time interval (day/week/month/year). On button click all the tags of all entry files are inspected and a table of the selected tag within the time intervals is generated. It is possible to show the number of tag occurrences, the tag values or the value sum as the result in the table.

Additional small change: Tags have an individual color in the calendar view to distinguish them easier.

The PR is ready to be merged. Maybe the color appearance of the UI elements in the analysis tab could be improved, but I don't know how the Qt style sheet works.

uhrfra and others added 5 commits February 15, 2022 22:55
This makes it easier to recognize the tags
in calendar view. Furthermore, only show tag keys in calendar view.
- Add some more date/time properties
- Add extended tag methods
- Store tags as member to avoid
  multiple yaml parsing when they are
  reused
@LukeBriggsDev LukeBriggsDev merged commit e09e1d6 into LukeBriggsDev:master Feb 19, 2022
@LukeBriggsDev
Copy link
Owner

Nice idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants