View Single Post
Old 08-21-2021, 09:28 AM   #28
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,962
Karma: 6361444
Join Date: Nov 2009
Device: many
Yes, the ExternalXEditor with the latest changes in 1.7 when used for PageEdit was meant to work the same way each time. If the current tab was an xhtml file Sigil would pass the opf and spine number of that file to PageEdit which should allow editing of all xhtml files but open with the selected xhtml as active on top.

If the current tab was the opf file, it did the same but opens with the first file listed in the spine in top as active.

That way it is as easy to open and edit a single xhtml file as the current tab is made active (on top) in PageEfit with the added bonus of working insert media, insert links, etc.

This was done both to simplify things for new users of PageEdit and also to allow PageEdit tools like insert link, insert image, etc to work properly all of the time (they require the opf info to work).

When passing the opf, filewatchers need to be properly set on all xhtml files and only the ExternalXEditor tool does that now.

OpenWith is set up to only deal with a single file at a time. I am not sure I want to change that, as it would just confuse things further. For example if you like to edit xml using your favourite xml editor, you should be able to launch and just watch that opf or ncx file just like any other file.

That was why a different mechanism than Open With was needed for PageEdit.

Last edited by KevinH; 08-21-2021 at 10:03 AM.
KevinH is online now   Reply With Quote