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

Split one tag into multiple via rename #465

Open
addisonklinke opened this issue Mar 23, 2022 · 0 comments
Open

Split one tag into multiple via rename #465

addisonklinke opened this issue Mar 23, 2022 · 0 comments

Comments

@addisonklinke
Copy link

Say I create a frame

watson start personal +lunch
watson stop
watson log

Wednesday 23 March 2022 (10m 04s)
	f4beec9  07:27 to 07:38      10m 04s      personal  [lunch]

Now I have several of these over the past two weeks. I decide I want the tags to be [meals, lunch] instead of just [lunch]. Currently watson rename only supports [lunch] --> [meals] but doesn't have append a meals tag everywhere there is a lunch one. I've tried

watson rename tag lunch "meals, lunch"        # Looks okay in log, but JSON is wrong so reports would be off
watson rename tag lunch '"meals", \n"lunch"'  # Garbled JSON, bad idea

Aside from using the frame hashes from log to do watson edit [hash] for everything manually, is there some way this kind of operation could be supported within rename? Perhaps the following could clarify single tag vs. multiple

watson rename tag lunch "[meals, lunch]"

Here brackets mean "interpret elements as a list of tags to replace lunch with"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant