-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support exclude filtering by tag #187
Comments
Oh my, this is fun one to do using json. Not super readable, but doable: klog json --today | jq '.records[-1].total_mins as $total |
(.records[-1].entries | map(select(.tags[] | contains("home") or contains("break"))) |
[.[].total_mins] | add) as $personal |
($total - $personal) as $time |
"\($time / 60 | floor)h\($time % 60)m"
' It would be nice if was natively supported in all the reporting commands. |
Thanks for your thoughts, and cool that you were able to work around via I think this is a broader topic, so I’ve created #190 for a place to discuss ideas and approaches. |
Thanks @jotaen! Here is more readable version of my script:
it's not too bad, just not well integrated. |
Would be nice if report could total all the activity excluding some with specific tag(s), e.g.:
and then doing something like
The text was updated successfully, but these errors were encountered: