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

There is no way to remove a keyword from a task #62

Open
Jefficus opened this issue Nov 14, 2019 · 3 comments
Open

There is no way to remove a keyword from a task #62

Jefficus opened this issue Nov 14, 2019 · 3 comments

Comments

@Jefficus
Copy link

I want to use the keyword system to assign temporary attributes to tasks. For example: @today for a task I plan to work on today, or @Blocked for a task that is blocked and waiting for somebody else. I can create those keywords easily enough, and assign them, but there is no way to remove them once they no long apply. A simple command would solve that problem: t_remove_keyword @Keyword

@agateau
Copy link
Owner

agateau commented Nov 14, 2019

You can remove a keyword by editing the task with t_edit, or am I missing something?

@Jefficus
Copy link
Author

Ah. Yes. I see now that you can remove them that way. Thanks.

For the record, this seems entirely unintuitive to me, as it requires knowing how the underlying record is being stored. I had assumed that it would be a link made between the task and the keyword, which would then need to be unlinked (similar to how projects are made active and inactive explicitly.) I had no idea that the linkage was created by actually embedding the keyword term into the task heading itself. This then invites the question: if you can do it by editing the task, then why is there a t_add_keywords cmd in the first place? Couldn't that too have been done by editing the task?

Anyway, I can live with having to edit the task to remove the keyword, but you might want to consider adding a removal command. That would make the keyword system much more efficient for anyone like me who might be changing keywords frequently.

@agateau
Copy link
Owner

agateau commented Nov 14, 2019

At the database level, it is indeed implemented as you said: a link between the task and the keyword. Keywords can be added/removed using t_edit to match the fact that you can assign keywords using t_add.

t_add_keywords was added so that you can add keywords in bulk using t_apply, but I agree it would make sense to have a matching t_remove_keywords command.

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

2 participants