zotero-actions-tags icon indicating copy to clipboard operation
zotero-actions-tags copied to clipboard

Batch remove rarely used tags

Open kerim opened this issue 2 years ago • 8 comments

This request is a little different from what this plugin already does, but it is tag related so maybe you would consider it?

I have many tags that are only used once or twice, and I would like to remove them - or even better (is there some way to do this) have them listed as "automatic tags" rather than regular tags, so that Zotero can hide them.

The problem is that a lot of them are "automatic tags" but from another app I used before Zotero, so they are treated the same as regular tags.

The way it would work is that the plugin would identify all tags that are only used 1,2, or 3 times and either remove them entirely, or change them into "automatic tags"

kerim avatar Jul 18 '22 02:07 kerim

A little difficult because knowing which tag is rarely used would require a full-database search. Too heavy maybe. Maybe a 'remove all tags' will be helpful?

windingwind avatar Jul 18 '22 04:07 windingwind

Well, I don't want to remove the tags I actually use! But the problem is that they are only a small percentage of my overall tags. The ones I do use will all be on at least 3 or more documents, while many of the others only appear once or twice.

kerim avatar Jul 18 '22 06:07 kerim

Maybe a right-click menu 'remove rarely used tags' and auto-count the tags under the current collection? The rarely used tags would be the default value of the popup's input area, split with ','

windingwind avatar Jul 25 '22 12:07 windingwind

Oh, thanks for continuing to think about this. I suppose it would be a two step process - first one needs to have the count and a list of the rarely used tags, then a way to batch remove them. Other than that, I don't have any particular insight into how it would work.

kerim avatar Jul 25 '22 13:07 kerim

Please try v0.2.13. image

windingwind avatar Jul 25 '22 14:07 windingwind

Is it possible to have the "check unused tags" feature ignore "automatic tags"? There is no need to remove those since they can be ignored.

Also, since the list this produces is quite long, what I do is copy and paste the resulting list into a text file to inspect. Perhaps it would make sense to simply have the "check unused tags" produce a plain text file that is saved to the desktop? This also reduces risk of accidentally removing all the tags - since the user will probably want to keep some of them and so needs to edit the list before doing the "remove" operation.

kerim avatar Jul 25 '22 22:07 kerim

Maybe copy to clipboard would be a good solution?

windingwind avatar Jul 26 '22 02:07 windingwind

That could work too.

kerim avatar Jul 26 '22 04:07 kerim

please try the latest

windingwind avatar Sep 04 '22 10:09 windingwind