View Single Post
Old 07-25-2014, 10:38 PM   #24
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,939
Karma: 6361444
Join Date: Nov 2009
Device: many
Hi Varlog,
I exchanged e-mails with Sigil's owner user_none, and he is willing to accept patches along the lines of your script DGSM approach for extending Sigil. He felt that would be a lighter, faster, more flexible way of extending Sigil than a more formal plugin structure that could be developed later.

So I am going to try and build what you have done, update it to current trunk, and see if I can help you work on it.

user_none has given me some tips about the process of flushing everything to disk before a script is run. He wrote ...

The issue you're going to run into is every file is loaded as a
resource. So you need to do something like this

a) Save all tab data.
b) Save resources to disk.
c) Run plugin.
d) Add and Remove resources from the FolderKeeper as needed.
e) Reload all resources from data on disk.

After eyeballing your patch, I wasn't sure you had saved all of the current data in the tabs. If not, we should probably add that. Another idea he had was to invoke the script using a modal Dialog with an infinite progress bar that waits and blocks editing until the script has completed.

Anyway, please post the very very latest version you have, and I will try to build it on trunk with a Mac and work with you to improve on it so that we can offer it to user_none and hopefully get him to add it to the official tree.

Take care,

KevinH
KevinH is offline   Reply With Quote