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

Group activities to report total time #44

Closed
ythri opened this issue Nov 3, 2020 · 4 comments
Closed

Group activities to report total time #44

ythri opened this issue Nov 3, 2020 · 4 comments
Labels
good first issue Good for newcomers

Comments

@ythri
Copy link
Contributor

ythri commented Nov 3, 2020

If you track a project in many small segments, rtw summary lists all tracked segments individually.

I'd love to have a way to group those together and get a report of the total time for each project. This should probably be a new command, like rtw report, which should print something like this:

  Project 1     04:20:17 in 4 segments
  Lunch break   00:35:46
  Project 2     02:10:43 in 2 segments
  Meeting       01:05:13

Like rtw summary, rtw report could take an additional parameter for the time span, i.e. to report the total times for today, the last week, or the last month.

@PicoJr PicoJr added the good first issue Good for newcomers label Nov 4, 2020
@PicoJr
Copy link
Owner

PicoJr commented Nov 4, 2020

@ythri would you like to give it a try? otherwise I might implement it when I have some spare time.

Btw it seems #43 was your first PR on Github, welcome!

@ythri
Copy link
Contributor Author

ythri commented Nov 4, 2020

Sure, I will give it a try! Shouldn't be to hard I assume. Might take me a few days though, since I don't have a lot of free time right now.

And thanks. Yeah, never contributed to anything, but your project is small enough, the fix in the PR was really easy, and rtw is really useful to me. I've been using it the last few days to track projects at work. So thanks for the project, and thanks for the quick merge :)

PicoJr added a commit that referenced this issue Dec 6, 2020
@PicoJr
Copy link
Owner

PicoJr commented Dec 6, 2020

I gave it a try:

Display a report (sum same activities)

Example:

rtw track 8 - 9 foo
rtw track 9 - 10 foo
rtw track 10 - 11 bar
rtw summary --report

Example output:

foo 02:00:00 (2 segments)
bar 01:00:00 (1 segment)

PicoJr added a commit that referenced this issue Dec 8, 2020
@PicoJr
Copy link
Owner

PicoJr commented Dec 8, 2020

Available in release 2.1.0

@PicoJr PicoJr closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants