-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
The watch module currently uses EventKind::Access(AccessKind::Close(AccessMode::Write)) to detect file changes, which relies on inotify's IN_CLOSE_WRITE capability. This event type is Linux-only and won't trigger on macOS (FSEvents) or Windows (ReadDirectoryChangesW).
Proposed Solution
Replace the current event matching with EventKind::Modify(ModifyKind::Data(_)) for cross-platform support. Consider adding debouncing to handle multiple Modify events that may fire for a single save operation.
References
- Pull Request: feat(rs): implement watch #56
- Review Comment: feat(rs): implement watch #56 (comment)
- Requested by: @SomeMWDev
Affected File
rs/src/modules/watch.rs (lines 32-39)
Metadata
Metadata
Assignees
Labels
No labels