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

Aliases for durations and relative dates #5

Open
dsample opened this issue Apr 20, 2020 · 2 comments
Open

Aliases for durations and relative dates #5

dsample opened this issue Apr 20, 2020 · 2 comments

Comments

@dsample
Copy link

dsample commented Apr 20, 2020

I've just started using this, and it's working great, but it would be good to be able to be able to have shortcut aliases for more things than just accounts. It would also be useful if more than just yesterday was understood as a date.

  • day for 7h30m
  • half for 3h45m

Some examples of what I'd like to be able to do:

  • tempo log <account> day
  • tempo log <account> half tomorrow - to book time for tomorrow
  • tempo log <account> day last-tuesday - To book against Tuesday of the previous week
  • tempo log <account> day last-tuesday - To book against Tuesday of the previous week
  • tempo log <account> half this-tuesday - To book against Tuesday of this week
  • tempo log <account> half next-tuesday - To book against Tuesday of next week
  • tempo ls this - To list all time this month
@dsample
Copy link
Author

dsample commented Apr 20, 2020

Using a library like Chrono might help with the dates side

@szymonkozak szymonkozak mentioned this issue Apr 20, 2020
@szymonkozak
Copy link
Owner

Thanks for the ideas. Aliases for the durations or dates would be a nice improvement. Listing worklogs from the whole month is also a good idea.

I will think about the API for managing aliases (we could use the current command tempo alias or create a new ones).

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