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

muon commit 15m #16

Open
paneq opened this issue Jan 17, 2013 · 2 comments
Open

muon commit 15m #16

paneq opened this issue Jan 17, 2013 · 2 comments

Comments

@paneq
Copy link
Member

paneq commented Jan 17, 2013

Sometimes we forget to turn on tracking time. We remember roughly how long we have worked. It is tedious to write git commit 10:00 10:15 to say that i worked for 15 minutes.

I would prefer git commit 15m and it would implicate that I worked for last 15minutes up to Time.now.

Other options such as 1h15m etc would also be welcomed :)

@jdudek
Copy link
Member

jdudek commented Jan 17, 2013

I have different idea for this.

  1. we could allow adding time entries without particular hours (for example you don't want to reveal when you've worked) and muon commit 15m would mean that

  2. muon start '15 minutes ago' or something like this would calculate start time.

We already use chronic_duration gem for parsing timespans (it is used by muon goal). There is also chronic gem that parses points in time.

I would be very happy if we could mimic git syntax for that. We've even spent some time with @mlomnicki looking at git sources... but I think we haven't found exposed API for their time parser. But I think the exact syntax is minor detail that can be ironed out later and chronic is fine for now.

@jdudek
Copy link
Member

jdudek commented Jan 17, 2013

I was even thinking about something like muon anonymize or muon paranoid that would rewrite all your time entries and replace timestamps with durations. I don't really need it :) but ability to write such tool would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants