View Single Post
Old 07-26-2014, 08:36 AM   #25
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
I've uploaded DGSM-0.0.3, which is basically just DGSM-0.0.2 rebased on your latest work (there were conflicts). There are some other small changes. The source is raw, I haven't cleaned it lately.

Quote:
Originally Posted by KevinH View Post
...
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.
...
It is a very nice development. It is too early to include it in main Sigil tree of course. Perhaps a branch, if you'll find it worthy?
Then again, judging from this thread's traffic, the Sigil community here (DD being an exception) is not very much interested in this functionality?
Anyway, my itch is as strong as ever and I'll be scratching it. Any help/comments are really really welcomed.

Quote:
Originally Posted by KevinH View Post
...

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.
...
a) I have done almost nothing with tabs.
b) only selected resources are saved at the moment
d) I do this, I think
e) depending on sigilAction I reload selected or all

Thank you for your time.
varlog is offline   Reply With Quote