Ability for `report --week` to output data for previous week.
Would be very useful. Or even output aggregation by last N weeks.
Hi @neumond! Thanks for the report. You are right: there is plenty of scenario that could be useful to implement in the report command. We need to think a bit more this command to make it more versatile.
I've been looking for this feature. I think an option for previous week would cover most scenarios without adding lots of complexity.
However, if you really want something more versatile, how about this:
Make the current option --week take an optional argument to select a specific week. Something like --week=21 to get the report for week nr. 21 without needing to specify --from & --to. If no argument is given, use the current week (current behaviour). Add a shorthand (e.g. prev) to refer to the previous week: --week=prev.
While I only mentioned week, this should be work for year / month / lunar / day as well.
Further to W4RH4WK's comment, could you use negative numbers for previous weeks? So last week is --week=-1?
I like that even better than the prev magic keyword!