It seems possible to have Sigil help here, although its not completely straightforward.
Adding a new blank section should probably stay as being added to the bottom and not be placed in what Sigil thinks is the correct sorted order - it might be too confusing and not what you want, not to mention tricky to implement. Easy enough to go to the end and rename/move.
There might be an argument for adding it after the item you selected for right click instead of to the end of the list. Its probably possible to implement this - but is there much of a desire for (or against) this change?
As to sorting the items, it should also be possible to have Sigil re-sort the html list on request. In fact I just implemented a test of that in a few minutes by adding a right-click option to re-sort by filename and update the book. The problem is of course, how to sort them.
The default sort is Case-Sensitive Alphabetic. But if you sort this way it ends up apparently being exactly the same as the imported files, so nothing gained.
What seems to be requested is a way to sort them in an alphanumeric approach (case-sensitive/in-sensitive, numbers first/last?). This requires re-implementing the sorting method as the standard model only sorts by alphabetic, and possibly having to deal with or ignore non simple characters.
I'm thinking something like a1 a10 a2 A3 7B 70b 8b sorting to 7B 8b 70b a1 a2 A3 a10.
Is this something worth looking into? How would you want them sorted?
|