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

on-modify.timewarrior: Use last annotation as additional tag, if present #236

Closed
wants to merge 1 commit into from

Conversation

fdcds
Copy link
Contributor

@fdcds fdcds commented Jul 10, 2019

This allows the following workflow to be effective and tracked in a useful manner:

task 123 start First draft
task 123 stop
...
task 123 start Second iteration
task 123 stop
...
task 123 start Bugfixing
task 123 stop
...

This will be tracked as:

01:00 - 02:00 <TASK 123 TAGS> "First draft"
03:00 - 04:00 <TASK 123 TAGS> "Second iteration"
05:00 - 06:00 <TASK 123 TAGS> "Bugfixing"

This allows the following workflow to be effective and tracked in a useful manner:
```
task 123 start First draft
task 123 stop
...
task 123 start Second iteration
task 123 stop
...
task 123 start Bugfixing
task 123 stop
...
```

This will be tracked as:
```
01:00 - 02:00 <TASK 123 TAGS> "First draft"
03:00 - 04:00 <TASK 123 TAGS> "Second iteration"
05:00 - 06:00 <TASK 123 TAGS> "Bugfixing"
```
@lauft lauft added the on-modify-hook This issue or pull request concerns the on-modify hook label Aug 2, 2019
@lauft
Copy link
Member

lauft commented Aug 8, 2019

The problem I see here is that this creates a lot of new tags (which are only used once).
Timewarrior 1.2.0 has a command annotate which allows to store an extra string along with the interval.

@ChargingBulle
Copy link

ChargingBulle commented Sep 12, 2019

Oh I never use a limited number of tags. I use TimeWarrior like this:

inc 20190912T100000Z - 20190912T110000Z # "Investigated issue 123" cooltool dev
inc 20190912T110000Z - 20190912T111500Z # "Fixed issue 123" cooltool dev
inc 20190912T111500Z - 20190912T130000Z # "Upgrading WSL, borking my ethernet setup while doing so" dev

The TaskWarrior integration incentivises an usage like this.
That's why I think this enhancement might be really cool (with config toggle).

@xeruf
Copy link
Contributor

xeruf commented May 14, 2020

The problem I see here is that this creates a lot of new tags (which are only used once).
reports

As @JavaZauber mentioned, this happens already with descriptions, so the argument is hardly valid.
We need to solve #41/#209/#179 anyways, and then this won't be a problem anymore either.

@lauft
Copy link
Member

lauft commented Feb 5, 2023

Migrated to GothenburgBitFactory/task-timewarrior-hook#4

Please continue any discussion of this PR there.

@lauft lauft closed this Feb 5, 2023
@GothenburgBitFactory GothenburgBitFactory locked and limited conversation to collaborators Feb 5, 2023
@lauft lauft removed this from the 1.5.0 milestone Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dev-branch on-modify-hook This issue or pull request concerns the on-modify hook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants