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

Remove tags completely #107

Open
einarpersson opened this issue Jan 21, 2025 · 3 comments
Open

Remove tags completely #107

einarpersson opened this issue Jan 21, 2025 · 3 comments

Comments

@einarpersson
Copy link

Hi!

I see that i can use apy tag to untag cards, but I don't see how to remove the tags themselves. Is this possible and if so how?

Also consider the case "remove all unused tags" which is possible through the desktop app.

Thanks for a great project!

@lervag
Copy link
Owner

lervag commented Jan 22, 2025

I see that i can use apy tag to untag cards, but I don't see how to remove the tags themselves. Is this possible and if so how?

Also consider the case "remove all unused tags" which is possible through the desktop app.

No, you are right, there is no way to remove a tag. I've actually wanted that a couple of times myself. I think having apy tag purge or something could solve this? It would do the same as the "remove all unused tags" that you mention. If you agree, then I'll go ahead and make this. But feel free to suggest a better name or idea!

Thanks for a great project!

Glad you like it!

@einarpersson
Copy link
Author

sounds good to me!

lervag added a commit that referenced this issue Jan 23, 2025
@lervag
Copy link
Owner

lervag commented Jan 23, 2025

I've added a --purge option now, so you can do apy tag --purge. If you are using the latest master branch you can update and test. If not, then you can test e.g. by doing something like this:

# Clone the forked repo
git clone git@github.com:<username>/apy.git
cd apy/

# Install the project with Poetry
poetry install
poetry run apy tag -c
poetry run apy tag --purge
poetry run apy tag -c

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