GothenburgBitFactory / GothenburgBitFactory/timewarrior

Ability to bulk modify intervals based on filter à la Taskwarrior's "modify"

Open
#338 4 comments 6 reactions 0 assignees View on GitHub
discussion
Dominant language
C++
Stars
1.7k
Forks
117
Avg merge
1d 7h
Merged PRs (30d)
5

Description

Now that I've been using Timewarrior a while, I'm starting to better categorize items (mostly via changing the tags and possibly using annotations as well). I want to do various things like:

* for all intervals matching certain tags, add some other specific tags
* for all intervals with tags matching a certain pattern or regex, add some other specific tags
* rename a tag for all intervals having that tag
* remove a tag from all intervals having that tag

Currently I think I need to do a summary listing of the filter in question, extract all the IDs, and then construct a new command to add or remove tags for all IDs from the previous analysis. It would be GREAT if I could instead do this automatically based on a search, similar to how the `modify` command works in [Taskwarrior - Modify Command](https://taskwarrior.org/docs/commands/modify.html):

> The same change, but to a set of tasks matching the filter:
>
> `$ task \( project:outdoors or /planting/ \) modify -home +garden`
>
> Correcting a spelling error in a task description:
>
> `$ task 1 modify /teh/the/`

I realize Timewarrior currently has a [modify](https://timewarrior.net/docs/timew-modify.1.html) command that unfortunately acts on one interval and the existence of which probably complicates this feature request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.