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

Adding work with track during active tracking with exclusions #490

Open
jokaro opened this issue Apr 28, 2022 · 1 comment
Open

Adding work with track during active tracking with exclusions #490

jokaro opened this issue Apr 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jokaro
Copy link

jokaro commented Apr 28, 2022

I needed to add some past evening work with the track command in the middle of an ongoing task that was limited with exclusions.

This is what happened.

define exclusions:
  monday    = <6:30 12:00-12:30 >15:00
  tuesday   = <6:30 12:00-12:30 >15:00
  wednesday = <6:30 12:00-12:30 >15:00
  thursday  = <6:30 12:00-12:30 >15:00
  friday    = <6:30 12:00-12:30 >15:00
  saturday  = >0:00
  sunday    = >0:00

❯ timew s :week

Wk  Date       Day Tags      Start      End    Time    Total
W17 2022-04-25 Mon Things  6:30:00 12:00:00 5:30:00
                   Things 12:30:00 15:00:00 2:30:00  8:00:00
W17 2022-04-26 Tue Things  6:30:00 12:00:00 5:30:00
                   Things 12:30:00 15:00:00 2:30:00  8:00:00
W17 2022-04-27 Wed Things  6:30:00 12:00:00 5:30:00
                   Things 12:30:00 15:00:00 2:30:00  8:00:00
W17 2022-04-28 Thu Things  6:30:00        - 0:57:23  0:57:23
                                                    
                                                    24:57:23

> timew track 2022-04-27T19:00 - 2022-04-27T23:00 "Other thing"

❯ timew s :week

Wk  Date       Day Tags          Start       End     Time    Total
W17 2022-04-25 Mon Thing       6:30:00         - 17:30:00 17:30:00
W17 2022-04-26 Tue Thing       0:00:00         - 24:00:00 24:00:00
W17 2022-04-27 Wed Thing       0:00:00         - 24:00:00
                   Other thing 19:00:00 23:00:00  4:00:00 28:00:00
W17 2022-04-28 Thu Thing       0:00:00         -  7:27:59  7:27:59
                                                          
                                                          76:57:59

I would expect the result to be like this.

Wk  Date       Day Tags           Start      End    Time    Total
W17 2022-04-25 Mon Things       6:30:00 12:00:00 5:30:00
                   Things      12:30:00 15:00:00 2:30:00  8:00:00
W17 2022-04-26 Tue Things       6:30:00 12:00:00 5:30:00
                   Things      12:30:00 15:00:00 2:30:00  8:00:00
W17 2022-04-27 Wed Things       6:30:00 12:00:00 5:30:00
                   Things      12:30:00 15:00:00 2:30:00  8:00:00
                   Other thing 19:00:00 23:00:00 4:00:00 28:00:00
W17 2022-04-28 Thu Things       6:30:00        - 0:57:23  0:57:23
                                                     
                                                         24:57:23
@jokaro
Copy link
Author

jokaro commented Apr 28, 2022

A couple of undos and then doing timew stop before that timew track did the expected thing. But I would still like the above usecase to work as well.

@lauft lauft added the bug Something isn't working label Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants