jdberry / tag

A command line tool to manipulate tags on Mac OS X files, and to query for files with those tags.
MIT License
1.47k stars 94 forks source link

list of all tags #45

Closed sank96 closed 5 years ago

sank96 commented 5 years ago

I red all the readme and also the previous issues, but I didn't find a command that show a list of the tags used in the finder, in order to know which colors are associated to each tag (as the screenshot attached)

image

thanks

markwk commented 5 years ago

I am looking for a similar function too so I can reduce the code I have in this files tracking script.

jdberry commented 5 years ago

@markwk: would it be sufficient if there was a command that could find the list of all tags used? Do you need the number of times each is used as well or can you generate that otherwise?

jdberry commented 5 years ago

@mett96: you don't really need to know the color for a tag, right, but you want to know the entire set of tags being used? The color of the tag is implied by the name.

sank96 commented 5 years ago

@mett96: you don't really need to know the color for a tag, right, but you want to know the entire set of tags being used? The color of the tag is implied by the name.

Yes I want to know the set of tags used in a folder or in all files. It is not necessary to know the color.

markwk commented 5 years ago

@markwk: would it be sufficient if there was a command that could find the list of all tags used? Do you need the number of times each is used as well or can you generate that otherwise?

Just a list would be fine. I can then use that list to iterate over the commands to get numbers. Thanks!

jdberry commented 5 years ago

I added support for a new usage command in v0.10 0ca3240928284eb13c5d59719ed520c8f5978704.

markwk commented 5 years ago

thanks @jdberry! Can't wait to see this update in next homebrew release once that's available. Cheers.

viethung0823 commented 4 months ago

@jdberry the usage command doesn't count 0 right? Is there anyway I can get all tags even their usage are 0?