Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files / folders #5

Open
martintuk opened this issue Jun 11, 2020 · 4 comments
Open

Ignore files / folders #5

martintuk opened this issue Jun 11, 2020 · 4 comments

Comments

@martintuk
Copy link

Thanks for this awesome tool!

Any way to ignore files/folders from being watched? like IDE folders and stuff.

Thanks again!

@apogiatzis
Copy link
Owner

Unfortunately, I don't think is possible at the moment but it is a priority feature to have in the backlog. I don't think it requires much effort to be implemented will try to add it when I get some spare time.

The relevant code is in https://github.com/apogiatzis/docker-compose-livereloader/blob/master/src/reloader.py#L29

@aisurfer
Copy link

@apogiatzis Take a glance at this code please
https://github.com/stevekrenzel/autoreload/blob/master/autoreload#L12
I tried it and It works well. What about using it as starting point to implement custom observer for livereloader?

@aisurfer
Copy link

Also watchdog has option to handle only specified patterns. It looks like several lines of code to change @martintuk
https://github.com/gorakhargosh/watchdog/blob/331fd7c2c819663be39bc146e78ce67553f265fa/docs/source/examples/patterns.py#L18

@aisurfer
Copy link

Oh, I see PatternMatchingEventHandler is already used livereloader!
https://github.com/apogiatzis/docker-compose-livereloader/blob/master/src/reloader.py#L34

Who can add env var for patterns? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants