Add format for description column to control number of annotations shown
I was importing/syncing some tasks from gerrit using bugwarrior, with comments pulled in as annotations, which got very long especially with CI adding in comments about failed runs e.g.,. It got me thinking that having a format option available for description which showed, e.g., the most recent or least recent N annotations.
This would enable users to show recent/relevant annotations, which serves a dual purpose of shortening the length of the description and maintaining some level of context with respect to the annotations (e.g., a link to the bug/ticket).
No new reports would be needed, this would be a feature for reports, though I imagine no default functionality would need to change.
I might take a crack at it some weekend, but figured I'd throw the issue in here in case someone else is interested in the functionality!
Thank you for your work on taskwarrior :)
You can shorten with eg description.truncated_count format (see task columns) but that's limited... what you suggest sounds like a useful addition! I also use annotations for "comments" and they can get long. I settled on just using description.count for reports and then displaying the full list of annotations only when displaying the task itself.
Alternatively, you can use a uuid-named file to track modifications and opening with https://github.com/jschlatow/taskopen. I use a restructuredtext format and a file: annotation which, when present, automatically opens it upon taskopen.