Page 1 of 1

Tags and subfolders

PostPosted: Wed Feb 08, 2023 10:56 am
by davidyannick
HI
I have a developper fonder with for each project subfolders, I'd like to make a rule that does :
- Tag each swift files in subfolders with a tag swift
- Tag each folder with iOS dev of Mac OS dev tags

But I don't know how to make recursive rules, I have made something with the examples on this site it works for folders but not for files, any idea ?

Thanks for your help

Re: Tags and subfolders

PostPosted: Thu Feb 09, 2023 10:03 am
by Mr_Noodle
Look up subfolders in the manual. There's a chapter there on having Hazel go into subfolders.

Re: Tags and subfolders

PostPosted: Thu Feb 09, 2023 10:13 am
by davidyannick
Mr_Noodle wrote:Look up subfolders in the manual. There's a chapter there on having Hazel go into subfolders.



I've tried this with no success

Image

Re: Tags and subfolders

PostPosted: Fri Feb 10, 2023 10:33 am
by Mr_Noodle
You have the nested condition set to target "all of its subfiles and subfolders". The swift file is only one file. Those other folders in there do not have a swift extension. Also, keep in mind the way you have it set up, this rule will only apply to folders directly at the top level under the Developer folder.