06-16-2024, 10:17 PM | #16 | |
Enthusiast
Posts: 32
Karma: 2204
Join Date: Jul 2009
Device: none
|
Quote:
|
|
06-17-2024, 02:10 PM | #17 |
Enthusiast
Posts: 40
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
|
In the previous version of Sigil, the "automatic file fix" pop-up had "Yes" as the default highlighted selection. This current update defaults to highlight "No" instead. Is it possible to have that revert back so that "Yes" is the default?
With my workflow, I open a batch of epubs at a time that need to be automatically fixed and it's much faster for me to hit the return key instead of now having to use the cursor to select and click "Yes". |
Advert | |
|
06-17-2024, 03:43 PM | #18 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There is only one commit to the source code file that contains that messagebox since the last version of Sigil, and I see no changes that would alter which button that particular messagebox would default to. Kevin may have more of an idea on that, though.
Perhaps the widget highlight code? |
06-17-2024, 04:07 PM | #19 |
Member
Posts: 10
Karma: 10
Join Date: Nov 2020
Device: Kindle Paperwhite
|
Hello, and thank you for your great work.
I wanted to ask if this is a bug in the new version. That is, when I rename the xhtml files in the "Book Browser" window, now the "id" and "idref" are no longer renamed in the content.ops file, as happened in previous versions. Ah, I have windows 11 64 bit |
06-17-2024, 04:29 PM | #20 | |
Bibliophagist
Posts: 40,534
Karma: 156983616
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
Advert | |
|
06-17-2024, 04:44 PM | #21 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes we never modified the idref/id in the manifest on rename as all they need to be is unique, so no need to ever change them. The user is free to pick and set his own unique id in the opf after a rename. The id need never match the file name. That was just an expedient to generate unique ids (since the filename must be unique, we used that).
Last edited by KevinH; 06-17-2024 at 05:01 PM. |
06-17-2024, 04:46 PM | #22 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
We can try to work around this by specifying which one we want to the default button instead of allowing Qt to choose. I will add that for the next release. PS, Use the Tab key to shift focus to the Yes button, no cursor needed. PPS, I have now pushed a fix for this to master. The fix will appear in the next release. Last edited by KevinH; 06-17-2024 at 05:24 PM. |
|
06-17-2024, 05:08 PM | #23 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
06-17-2024, 05:14 PM | #24 | |
Member
Posts: 10
Karma: 10
Join Date: Nov 2020
Device: Kindle Paperwhite
|
Quote:
Doing it manually for so many files will now be complicated I'll just say it: it might be useful to insert an alternative option "rename the id/idref too" |
|
06-17-2024, 05:17 PM | #25 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes, Sigil has never done that since we moved away from that horrid old xml processor way back before Sigil 1.0.
As for id strings being named after the file itself, there is no need to do this, no one reading it will ever see it and the only thing to use it is the opf internally. All it has to be is unique. Any "new feature" to re-id all files in the OPF would have to be done by a Sigil plugin, as it is not suitable for Sigil itself. Perhaps you can convince a Sigil plugin developer to help you create one. Do not forget to properly update the spine if needed and to watch for smil and other things that use the ids for references such as metadata elements in the form of refines. Last edited by KevinH; 06-17-2024 at 05:23 PM. |
06-17-2024, 05:22 PM | #26 |
Enthusiast
Posts: 46
Karma: 10
Join Date: May 2021
Device: PW 2 3gb
|
Just gets better and better, thanks. I do still wish there was a horizontal scroll at the top for tabs, but I understand it's not gonna be a thing.
Well done, thank you. |
06-17-2024, 08:11 PM | #27 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
Sorry but Qt's QTabBar does not directly support using a scrollbar to scroll across tabs. Last edited by KevinH; 06-17-2024 at 08:23 PM. |
|
06-17-2024, 11:10 PM | #28 | |
Enthusiast
Posts: 40
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
|
Quote:
Awesome work! Unfortunately, tab key doesn't shift selection to the Yes button for me. Could be because I'm on macOS? Not sure. But I'll look forward to the next release. Thanks! Last edited by wildfire070; 06-17-2024 at 11:15 PM. |
|
06-18-2024, 08:38 AM | #29 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
It used to work for me and I am on macOS. Tab and Shift-Tab is supposed to move the focus forward and back (respectively) in the focus chain on all platforms. So something is strange. Perhaps the QMessageBox is more broken or finicky than I thought.
Using the tab key should always move focus in a Qt app among buttons even on macOS systems. I just tried on my macOS machine and tab did nothing. Seems, I need to do more work here. Last edited by KevinH; 06-18-2024 at 10:11 AM. |
06-18-2024, 10:57 AM | #30 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
So exit completely out of Sigil. Then go to your MacOS System Settings -> Keyboard Then look for "Keyboard Navigation" and turn it on using the slide button on the far right. This will allow you to use Tab and Shift-Tab to move focus forward and back on macOS across the buttons using just the tab key. This will save you from having to use the mouse to click on the Yes button until a new version is released. Just tested this on my mac and it works just fine. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-1.3.0 Released | DiapDealer | Sigil | 8 | 09-15-2020 09:03 AM |
Sigil-0.9.10 Released | DiapDealer | Sigil | 149 | 11-19-2018 11:20 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 11:41 AM |
Sigil 0.8.2 Released | user_none | Sigil | 12 | 12-22-2014 07:02 PM |
Sigil 0.7.0 Released | user_none | Sigil | 75 | 03-03-2013 01:41 PM |