Open hbuxiaofei opened 3 weeks ago
Thanks for reporting!
Apparently vim is replacing the file with a new one when saving it, instead of modifying it. See https://github.com/notify-rs/notify/issues/247 and https://github.com/notify-rs/notify/issues/113. So it looks like we have to watch the directory instead.
I opened a PR to hopefully fix this issue: https://github.com/dora-rs/dora/pull/532. Could you please try whether it works for you? Thanks!
Env:
When editing a source file using the vim editor, the following events will occur:
The
ModifyKind::Data
event will not occur.