Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.