Skip to content

Real-time file change monitoring #129

@ProgerXP

Description

@ProgerXP

From what I understand, Notepad2 implements a hybrid of event-based file change monitoring (by means of FindFirstChangeNotification) and polling by timer. Why, instead of polling for changes every 2 seconds, it doesn't just WaitForSingleObject on the returned change handle in a separate thread so that changes to the file are immediately recognized?

If there are no particular reasons for the existing approach, then I'd like input on how time consuming it is to implement the change monitoring like described (plus a minimum interval between 2 reload events for files that change too fast).

Current implementation makes it impossible to use Notepad2 as a log monitoring tool

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions