Quote:
Originally Posted by KevinH
When the external XHTML is set to PageEdit and launched by using the XEditor icon when an xhtml file is being edited in CodeView, it will create a parameter list that specifies a path to the opf file, a spine order number that specifies the xhtml file to be edited, and with the latest versions of Sigil, with add a file cursor position offset to the passed parameters. Sigil then knows to set file watchers on all of the epub's xhtml files so that Sigil knows when and if an xhtml file has been changed by Pagedit and reload them.
PageEdit uses this passed in information to build the list of xhtml files in spine order and identify the specific xhtml file you want to edit. And it will even try to match cursor position from CodeView.
This matching of cursor position and the setting of file watchers on all xhtml files is only done when using the XEditor, not with Open With. So they do differ.
It does not edit or change the OPF, it just uses it as a way to pass all the paths to the spine's xhtml files including the one currently being edited in CV.
|
Thanks Kevin, I get it now.
However - I cannot and never have been able get the external editor to work via a keyboard shortcut (I've tried Windows Safe mode, and nuking Sigil's preferences). And I've tried F9 (because it's next to F8), Ctrl+Alt+E and F2 (after I removed it from Rename**). I'm pretty sure it was yourself or Doug who told me I could the same thing… edit all the text files with Page Edit… by using OpenWith on the OPF file.
I have just discovered I can get the external editor to work with the toolbar button. But I don't make any use of any other toolbars… they're unchecked in View->Toolbars. So I have to ask: Why is there no menu item to do what the button does? IMO: it should be in the Tools menu. Toolbar buttons may be a convenience for abled persons, but the lack of an alternative is an irritant to the rest of us.
BTW: for me F2 for Rename is as ubiquitous as Ctrl+X,C and V are for Cut, Copy and Paste.
BR