What
At export time, prepend a one-line "at a glance" summary to the worklog with aggregate counts for the selected window.
Suggested contents
- commits
- PRs authored
- PRs reviewed
- repos touched
- net lines changed (+/-), derived from the
git show --stat data already fetched for the preview pane
Example:
8 commits · 3 PRs · 2 reviews · 4 repos · +1,204 / -318
Notes
- Should respect the current selection (only selected items count), and the chosen format (
md / json). For JSON, emit a structured summary object rather than a string.
- Line-change numbers are already available via
git show --stat (see internal/collect/git.go Preview); may need a lightweight numstat fetch to total them without the diff text.
Relates to the feature brainstorm in chat (#1).
What
At export time, prepend a one-line "at a glance" summary to the worklog with aggregate counts for the selected window.
Suggested contents
git show --statdata already fetched for the preview paneExample:
Notes
md/json). For JSON, emit a structuredsummaryobject rather than a string.git show --stat(seeinternal/collect/git.goPreview); may need a lightweight numstat fetch to total them without the diff text.Relates to the feature brainstorm in chat (#1).