tag icon indicating copy to clipboard operation
tag copied to clipboard

Find files with tags that match a regex

Open themiurgo opened this issue 11 years ago • 5 comments

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.

themiurgo avatar Jul 14 '14 12:07 themiurgo

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.

pj201 avatar Nov 20 '14 16:11 pj201

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 avatar Mar 12 '15 17:03 Sesquipedalian

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

Sesquipedalian avatar Mar 12 '15 17:03 Sesquipedalian

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

marcuserronius avatar Apr 25 '15 01:04 marcuserronius

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... ;)

jdberry avatar Apr 25 '15 01:04 jdberry