-
Notifications
You must be signed in to change notification settings - Fork 29
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
Improve tag handling for klog pause
#283
Comments
|
@rafalkrupinski could you explain in more detail what you have in mind here, e.g., with an example? I’m not sure I follow. |
I guess by I just mean I'd prefer to have a config setting, so that by default the summary would be copied from the currently open range, or if it has no summary, from the containing Record.
...come to think about it, it could merge tags from both.
I'd prefer a config setting instead of command line flag, since I'd want to copy tags every time I |
Resolves #283. If the open range contains tags, then `klog pause` will automatically take them over (i.e., append) them to the pause entry. ## Example ``` 2000-01-01 5:00-? Did #work ``` Then `klog pause` yields: ``` 2000-01-01 5:00-? Did #work -0m #work ``` You can still use the `--summary` flag. `--no-tags` disables this behaviour.
If you want to pause a tagged entry, then it’s important to take over the tags to the pause entry, otherwise the time is not subtracted properly.
So if you want the
-45m
to apply/refer to the#work
entry, you have to tag the break with#work
as well.Therefore:
klog pause
klog pause
that automatically takes over all tags from the previous entry, likeklog pause --with-tags
(naming tbd)Originated in #281.
The text was updated successfully, but these errors were encountered: