Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:30 AM   #16
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
About Undo, you are right, just close the window if you mess up.

About MoveUp and MoveDown, I'm really not sure, to my test, you can definitely move items that themselves being childern of others, which means that they are not top level right?

See this:

Click image for larger version

Name:	t1.png
Views:	22
Size:	74.2 KB
ID:	224908

Click image for larger version

Name:	t2.png
Views:	19
Size:	80.0 KB
ID:	224909

We have C carrying D, and E carrying F, both childern of B.

And we choose E and hit Moveup:

Click image for larger version

Name:	t3.png
Views:	22
Size:	74.2 KB
ID:	224910

Click image for larger version

Name:	t4.png
Views:	17
Size:	76.6 KB
ID:	224911

And it definitetly works, so I didn't quite understand what do you mean by move up and down only works on top level items. Could it be a language misunderstanding?
icearch is offline   Reply With Quote
Old Yesterday, 08:01 AM   #17
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,887
Karma: 7500000
Join Date: Nov 2009
Device: many
In your last example, Chapter E when it is the only selection, it is *not* a top level item. By design, MoveUp or MoveDown buttons should have no impact on it. You must first MoveLeft to unindent it, then you can move it Up and Down. If current Sigil is allowing a direct MoveUp or MoveDown it is a bug that will be fixed. That is not how it was originally designed to work.

Last edited by KevinH; Yesterday at 08:03 AM.
KevinH is online now   Reply With Quote
Advert
Old Yesterday, 08:41 AM   #18
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
Well, it works fine enough for me, so I'd call it a feature not a bug.

Jokes aside, why shouldn't it be like this? What problem can happen when moving non top level items?
icearch is offline   Reply With Quote
Old Yesterday, 10:22 AM   #19
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,887
Karma: 7500000
Join Date: Nov 2009
Device: many
No you should not be able to directly move a child of one item to be a child at an unknown level (it may not fit at its current level in the destination) of another item without first promoting it, moving it into position below its future parent then demoting it to be a child of that parent.
KevinH is online now   Reply With Quote
Old Today, 03:21 AM   #20
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
No you should not be able to directly move a child of one item to be a child at an unknown level (it may not fit at its current level in the destination) of another item without first promoting it, moving it into position below its future parent then demoting it to be a child of that parent.
I'm assuming you mean move up and down will cause one item jump to other level and/or become other's children.

But no, to my test, in Sigil, move up and down only let items switch place if:

1. Both items are same level

AND

2. Both items have same parent

It does not change level, nor does it switch with other parent's children.

So that is not a problem or bug, and does not work like you described (to my understanding).

Last edited by icearch; Today at 03:31 AM.
icearch is offline   Reply With Quote
Advert
Old Today, 03:29 AM   #21
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
And I tested Calibre, to my suprise, it does allow that chaos happen, so Calibre is the one that should fix the bug. Or to make it more restrictive.

That is one reason why I did not suggest just copy what Calibre did, because it's surly kinna chaos and buggy.
icearch is offline   Reply With Quote
Old Today, 03:36 AM   #22
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
Click image for larger version

Name:	t5.png
Views:	16
Size:	51.7 KB
ID:	224946

See this pic?

Item that can switch:

A with G

B with C with E

Other items can not move up or down, like H can't jump out or switch with B/C/E.

That's it, no chaos, no bugs, just works as it should be.

Last edited by icearch; Today at 03:38 AM.
icearch is offline   Reply With Quote
Old Today, 03:47 AM   #23
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
No you should not be able to directly move a child of one item to be a child at an unknown level (it may not fit at its current level in the destination) of another item without first promoting it, moving it into position below its future parent then demoting it to be a child of that parent.
Oh, I misunderstand you, what you are saying here is right, if you want to move an item to be other's children, you do need to promote (move left) it to a suitable level first, and then indent (move right) it.

But rest assured, what I just said proves that this is totally fine. You would not accidently or deliberately mess the TOC up because you just can't do it in Sigil.

So move up and down should not be restrict to top level, because it's inconvenient, and it's already a well made, bug free function.

Last edited by icearch; Today at 03:49 AM.
icearch is offline   Reply With Quote
Old Today, 11:39 AM   #24
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,887
Karma: 7500000
Join Date: Nov 2009
Device: many
Alright, I spent most of the last 3 days learning about the intricacies of the Qt QStandardItemModel and intelligent selection and preventing changes from needlessly changing indexes of the items.

So this may be a bit flakey, so I have pushed the changes to my personal Sigil repo instead of normal master:

https://github.com/kevinhendricks/Sigil

So if you build your own from source, please git pull from there and rebuild and give those changes a test to see if they do pretty-much what you wanted.

Please let me know of any issues.

If it all works okay, please let me know I will then push these changes to normal Sigil master and they will appear in the next version of Sigil.
KevinH is online now   Reply With Quote
Old Today, 09:34 PM   #25
icearch
Groupie
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: 189
Karma: 2000
Join Date: Nov 2025
Device: none
How nice, very good of you, sir.

But unfortunately I do not code, so I don't know how to do that.

Maybe when someone have some free time, please make it into an installation exe so I can test it out.

Thanks everyone for their contributions.
icearch is offline   Reply With Quote
Old Today, 09:54 PM   #26
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,581
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 extended ToC editing: Sigil-2.8.1-Windows-x64-Setup.exe.
DNSB is online now   Reply With Quote
Reply


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 10:14 PM.


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