Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2026, 03:02 PM   #46
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: 9,905
Karma: 7500000
Join Date: Nov 2009
Device: many
As for your number 2 above: I have fixed this in master. The problem was not actually the code that did the move, it was the code that reselects the original set of now moved items since that selection is lost during any move. This is easy when there is just one item being selected at a time, but has turned out to be a major pain in the ass as reselections were not properly merged in to grow contiguous regions meaning the next time you tried to do a move down, the selection appeared correct but was not a contigous range and instead a selection of individual items and then movement order and direction really matters.

You can see this with your test build by doing a single contiguous move down, then manually reselecting the same (now moved) items with a click and a shift click. Then hit down arrow again. This time it works! But only because you properly reselected it after the first move. Obviously that would not work long term but it strongly hinted at the real problem.

So I had to figure out why or how merging a selection from its individual items (which appeared to highlight the correct rows) but was actually a mess underneath, could actually be done properly. It turned out I had to completely regroup things into contiguous ranges and manually select each range.

Either way this should now work correctly.

As to your number 1: we must disagree here. I do not think of the items I selected as being a rigid solid block that you must abort moving when any of it can not move (even one small piece of it) as you seem to do. I view them as a collection and of those in the collection that have a legal move, go ahead and move them. And for those that hit a boundary, and can not move, drop them from the collection but still perform the move.

This seems to be quite safe as a user can use the toc editor to fix whatever mess they made by "spamming" ie. trying to force one part of an illegal selection to move in a direction it can not (thus why I call the selection illegal for that move, it includes something selected that can not move in the direction told to.

I frankly like what it does and expected it. You obviously thought otherwise. Not sure if one of us is right and one of us is wrong, just different expectations.

I am going to leave the current code (with the fix for number 2 just pushed to master) around for a while so that others can comment if they like that behaviour or if they prefer yours.

Last edited by KevinH; 08-09-2026 at 03:09 PM.
KevinH is offline   Reply With Quote
Old 08-09-2026, 06:13 PM   #47
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 53,667
Karma: 181843001
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Link removed as new version uploaded.

Last edited by DNSB; Yesterday at 05:29 PM.
DNSB is offline   Reply With Quote
Old 08-09-2026, 08:23 PM   #48
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Sure, if you think user should be responsible for not spamming, I agree. I just want it to be more like idioit proof or prevent accident slip/ multi hit. But fair enough if you think otherwise.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:30 PM   #49
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Well, bad news buddy, you haven't fix it throughly.

I just tested it, and the bug I mentioned in testing moving right still exist (ie. when you select items in diffrent ways to get the same final group).

Here is the thing: I Shift select EFG to test move down, and I changed my mind by Ctrl H too. And guess what? It messed up. So I restart and reopen the file, this time Shift EFGH all, it works fine.

So I think there still bugs hiding around.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:33 PM   #50
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Here, I Shift DEF and Ctrl G and H:

Click image for larger version

Name:	d1.png
Views:	14
Size:	130.3 KB
ID:	225059

And hit move down once:

Click image for larger version

Name:	d2.png
Views:	12
Size:	129.5 KB
ID:	225060

tada

Moving up does not have this problem, works pretty robust.

Last edited by icearch; 08-09-2026 at 08:36 PM.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:35 PM   #51
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
I think you might want to read my test of moving right and left again more throughly, it's not just about sapmming, it contains software crush and different behavior with same start condition.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:43 PM   #52
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
And I just repeat my test of moving right and left again, good news is it seems fixed most problem, and if you restrict yourself to just select items with same level and parent, and do not spam, it seems to work fine (need more testing).

But the crush one still exist, you might want to look into that.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:49 PM   #53
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: 9,905
Karma: 7500000
Join Date: Nov 2009
Device: many
And it happens because you can not move right one of the selected items so it's dropped but the next item then moves under it. Again this is expected given the drop from selection at the boundary.
KevinH is offline   Reply With Quote
Old 08-09-2026, 08:49 PM   #54
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Hold on, cow boy, not so fast.

I think might just paly around for good measure, and I just random Shift and Ctrl, Select and un-select items till I got:

Click image for larger version

Name:	r1.png
Views:	11
Size:	129.7 KB
ID:	225066

And hit move right once, and you guessed it:

Click image for larger version

Name:	r2.png
Views:	14
Size:	129.9 KB
ID:	225067

So there are definatly bugs when it comes to selection, you might want to looking into it.
icearch is online now   Reply With Quote
Old 08-09-2026, 08:51 PM   #55
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
And it happens because you can not move right one of the selected items so it's dropped but the next item then moves under it. Again this is expected given the drop from selection at the boundary.
Oh, we cross post, which one are you mentioning?
icearch is online now   Reply With Quote
Old 08-09-2026, 10:29 PM   #56
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: 9,905
Karma: 7500000
Join Date: Nov 2009
Device: many
Yes, the order you select a multi-selection actually impacts how it works. Qt treats a contiguous click and shift-click of n items different from that done on n-1 items followed by a single add-on to reach n contiguous items. It is differently reported by Qt.

So unlike single-click selection, how the user actually selects a multiple selection (in pieces vs totally matters and order does matter.

So if you want to build up a region by individual clicks and not a single click-shift-click it will will impact the result that Qt reports the user's selections.

That is why I had to rebuild the selection to form normal ranges to get the follow-on move right to work at all.

I will look into replacing all of Qt's internal selection mechanism with my own to try to properly make it selection order independent just like I already did for the reselection issue that broke move right.
KevinH is offline   Reply With Quote
Old 08-09-2026, 11:00 PM   #57
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 212
Karma: 2000
Join Date: Nov 2025
Device: none
Thank you for your effort, here waiting for good news.
icearch is online now   Reply With Quote
Old Yesterday, 11:10 AM   #58
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: 9,905
Karma: 7500000
Join Date: Nov 2009
Device: many
In your example above, to Qt it looked like a bunch of single selections that just happened to sit by each other. And according to Qt to get an actual contiguous range selection, a user **must only** click on the starting item and then shift click on the ending item. That is the only way!

That is why you saw what you did above.

This choice by Qt will not be clear for the majority of users since no other software I know about makes this distinction.

So I just pushed a change to Sigil master, to make user selections consistent no matter how the user produces them.

Sigil does this by growing our own contiguous ranges every time the user selects move up, down, right, or left and actually replaces the user's final selections with proper range selections. In that way it will not matter how the user reaches that selection, only that it is contiguous (so the items in that block are all treated the same way at the same time).

This should fix those cases you reported immediately above.

Hope this does the trick.

Last edited by KevinH; Yesterday at 11:21 AM.
KevinH is offline   Reply With Quote
Old Yesterday, 03:33 PM   #59
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: 9,905
Karma: 7500000
Join Date: Nov 2009
Device: many
Oh and just to test icearch's approach, I have just pushed the changes to prevent any movement when any of the multiple selections are at a "boundary" for the move selected. In other words, treat them like they are a rigid block.

Please give this try and compare it to the approach of just dropping items that reach the boundary from the current selection and moving all the other ones in the direction asked for (previous to this last commit).

Please let me know which approach is preferred.
KevinH is offline   Reply With Quote
Old Yesterday, 05:30 PM   #60
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 53,667
Karma: 181843001
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For those using Windows, here is a link to the version with the next generation of fixed advanced ToC editing: Sigil-2.8.1-Windows-x64-Setup.exe.

As per a request by one user, the SHA-256 for this compile of Sigil-2.8.1-Windows-x64-Setup.exe is
18A295493275BA3A798B03CA1352BE8B8657C7007E62697C36 CA50492E231ACA
DNSB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC editing tohdao Editor 2 10-27-2021 11:37 AM
Editing TOC Text phossler Editor 3 05-22-2020 10:55 AM
Content server: Allow editing the metadata of books from the book details page Divingduck Calibre 2 03-23-2018 11:10 AM
Editing toc exaltedwombat Sigil 4 10-14-2012 01:57 PM
Editing posts --- Go Advanced won't go GrannyGrump Feedback 4 05-25-2012 01:50 AM


All times are GMT -4. The time now is 09:48 AM.


MobileRead.com is a privately owned, operated and funded community.