This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Exclusion lists #42
Comments
Then there will be such a capability? https://github.com/kaelzhang/node-ignore |
It is something I want to do, but won't get to soon. Some of the complications that will need to be dealt with here include:
As a workaround until then, you can always filter watcher events JavaScript-side: const watcher = require('@atom/watcher')
const ignore = require('ignore')
const ig = ignore().add(['.git/*', 'node_modules'])
const w = await watcher.watchPath('/root/path', {}, events => {
for (const event of events) {
if (ig.ignores(event.path)) continue;
//
}
}) |
Thanks for your description and JS example! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Support per-watch-root exclusion lists, likely expressed as arrays of globs.
The text was updated successfully, but these errors were encountered: