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

Find files with tags that match a regex #8

Open themiurgo opened 10 years ago

themiurgo commented 10 years ago

It would be useful to have a way to find files with tags matching a regex. As far as I understand there is no way to do it now.

pj201 commented 10 years ago

I would like to second that - this tool is great but it would be even more useful if we could match tags based on a prefix, wildcard, or ideally a regex.

Sesquipedalian commented 9 years ago

It would be nice to have this ability included, but you can probably accomplish this using something along these lines:

tag --find * | grep -E 'your regex'

You may need to adjust some of the options for tag's output in order to get exactly what you need.

Sesquipedalian commented 9 years ago

Bleh. Meant to escape that *. Oh well, you get the idea.

marcuserronius commented 9 years ago

Since this tool is mainly a wrapper for the system calls, I doubt that will be added....

jdberry commented 9 years ago

Finding files with tags that match a regex could certainly be added, but I haven't yet had the time or motivation, unfortunately. Patches welcome... ;)