Quote:
Originally Posted by BeckyEbook
I need one more thing: how to detect (via the plugin) if the file has been modified but not saved (exist * after filename).
|
It's probably best to create modified flags for yourself in your plugin. Whether that's by setting flags whenever you
know that your plugin has modified a file, or by gathering a list of some sort of file checksums before processing and then comparing those files checksums before exiting.
Plugins work on copies of files. Meaning changes aren't incorporated into the existing plugin until after the plugin completes.
There are some dictionaries in wrapper.py that can be accessed with that info, but that's considered bad form (somewhat) since unforeseen things can happen if those dictionary contents are accidentally modified incorrectly.