watcher icon indicating copy to clipboard operation
watcher copied to clipboard

Regex exclude files

Open cupcakearmy opened this issue 6 years ago • 3 comments

New RegexIgnoreHook method for excluding files with regex syntax, to prevent files from firing an event. Same syntax as RegexFilterHook

Example
// Ignore files that have a certain pattern
r := regexp.MustCompile("node_modules")
w.AddFilterHook(watcher.RegexIgnoreHook(r, true))

cupcakearmy avatar Feb 11 '19 12:02 cupcakearmy

@radovskyb Are there any plans to merge this? I am working on a project that would definitely benefit from this feature

jhand2 avatar Nov 17 '19 07:11 jhand2

@radovskyb any chance of merging this? :)

cupcakearmy avatar Nov 29 '19 20:11 cupcakearmy

@radovskyb ping ❤️

cupcakearmy avatar Jun 10 '20 08:06 cupcakearmy

Officially given up

cupcakearmy avatar Apr 24 '23 09:04 cupcakearmy