Use inotify to monitor open pages for changes
Bug #792058 reported by
Adam Porter
This bug affects 10 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
In Progress
|
Wishlist
|
Unassigned |
Bug Description
I have my Zim notebook in Dropbox and synced between a few systems. Occasionally I may have Zim open to the current day's calendar page on more than one system at a time. It would be great if Zim used inotify to monitor open pages for changes and, if it changes and there are no unsaved changes in Zim, if it reloaded the page and returned the cursor to the line it was on. This way, I could walk back and forth between systems, edit a page that's open on both, and walk back to the other system, and it'd be updated automatically.
Changed in zim: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
To post a comment you must log in.
I just found out that the monitoring provided by gio does not allow monitoring the full directory tree, but just one level at a time :( An inotify is linux only, so would like to avoid it if possible.
However I was wondering if it would be sufficient to check e.g. the current page and parents on some regular timing. In that case we could just check timestamps on a regular interval without the need of any real kernel based filesystem monitoring and it would not be as heavy as checking the whole notebook. Still it would detect most changes in the visible part of the page index.