viseshrp / workedon

Work tracking from your shell.
MIT License
33 stars 0 forks source link

Feature Request: Tags and Durations #35

Open riley-brady opened 1 year ago

riley-brady commented 1 year ago

Issue

Description

Two potentially useful features could be adding a tag and a time duration. I'd love to use tags to identify which of many different projects I'm working on. Duration would be nice for a quick look at how many hours I have contributed to it.

E.g.,

workedon "Supported XX colleague with developing unit tests" @ 9am today -d 2 hours -t "support"

So that I could do

workedon what -t support

And get a read-out of all of the sub-tasks for this tag and how long they took.

viseshrp commented 1 year ago

@riley-brady Look at that! I have my first feature request :) Thank you. Those are very valid requests.

I have been thinking of tagging for a while now but have not actually thought about the implementation. One of the things I like about this tool is the simplicity of usage. Avoiding weird things to remember to do while using it. Keep it as natural as possible. I am too lazy to even use double quotes sometimes like in your example :) So, I think we want to avoid additional options and make it a little easier to specify the tag. I thought about something like hashtags in the content to tag logs. Something like: $ workedon "the twitter api #work" and then $ workedon what --tag work like you've suggested. I will definitely look at soon, because I have the need for the same.

Duration is pretty interesting. Never thought about it or had a need for it but I can absolutely see how that would be useful. I can't immediately think of how to do that avoiding options though, but I think we can make do here.

riley-brady commented 1 year ago

Love the idea of this. I am looking for a simple work tracker as well and this is 90% of the way there. I think the tagging would get me on board.

Agreed that just having a # would be plenty, and then parse from there.

My work-around for the duration would just be $ workedon "the twitter api (2 hours) #work @ 9am today". Honestly duration is a specific request for me right now because I'm trying to track how I am dividing my time between projects, meetings, and support tasks.

viseshrp commented 1 year ago

Appreciate it. I like the idea for duration. Will definitely look at this soon. Thanks.

viseshrp commented 1 year ago

Working on both tags and durations at the moment. It is not straightforward because I need to modify the storage schema a bit but I'm almost there. I will push a test release to do some testing for some time so let me know if you would like access to test it.

riley-brady commented 1 year ago

That would be great -- let me know once you have a tagged release I can target.