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.43k stars 91 forks source link

Add generalized boolean search, allowing to match files not including tags #40

Open xave opened 5 years ago

xave commented 5 years ago

It would be nice to be able to specify tags to ignore. For instance, say I tag some files as "archive". I could then run a search as normal but that do not include files tagged as archive. A sample of the command could look like this:

tag -f Red Yellow Blue -i archive

This would search for all files that have been tagged "Red", "Yellow", and "Blue", but that do not have the "archive" tag.

jdberry commented 5 years ago

So you seem to want to be able to add an exclude criteria: contains these tags but not these other tags. Yeah, currently we can't do that. That would fall under more generalized boolean support.