04-03-2022, 03:28 PM | #106 | |
just an egg
Posts: 1,597
Karma: 4798866
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
However, the window geometry is saved when I do this instead: open epub, shift-click Replace All, expand window horizontally, click Close, quit Sigil (using command-Q or menu item Quit), re-open epub, shift-click Replace All. Window opens to last window size (expanded). Quitting Sigil after expanding the window seems to trigger saving window geometry? ETA: I just tested this again. Quitting Sigil not necessary. Closing the epub (click red close button on Mac) then re-opening the epub also works to save window geometry. Last edited by odamizu; 04-03-2022 at 06:04 PM. |
|
04-03-2022, 03:53 PM | #107 |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Which means that Dialog's destructor was not called until Sigil itself quit. The close event code I added should fix that issue.
|
Advert | |
|
04-03-2022, 04:11 PM | #108 | |
just an egg
Posts: 1,597
Karma: 4798866
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
And for this wonderful feature. It is AWESOMENESS. ETA: I just tested this again. Quitting Sigil not necessary. Closing the epub (click red close button on Mac) then re-opening the epub also works to save window geometry. Last edited by odamizu; 04-03-2022 at 06:03 PM. |
|
04-04-2022, 11:32 AM | #109 |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Confirming that I see the same behaviour as odamizu when I quit/restart with the 397 Windows build. Which I course I didn't see yesterday because I was removing my sigal appdata dir each time I tested to make sure I didn't have any previous configuration problems .
|
04-04-2022, 11:45 AM | #110 |
Guru
Posts: 704
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
@KevinH: Look here.
Tested on the latest build including 1fc2a49. |
Advert | |
|
04-04-2022, 12:02 PM | #111 |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
@BeckyEbook,
That is strange. I will look into it. I would have thought the closeEvent would be invoked if accept() is called. Edit: Based on some debug output the closeEvent() is *not* invoked when "accept()" is used to close the window. I had no idea and nothing in the docs say this will happen as the window is closed if I use accept(), reject(), or done() so as far as I am concerned this is a Qt bug. To prevent it, I replaced all accept() calls with close() calls to literally make sure the closeEvent handler is invoked. Just pushed that to master. If you get a free moment give it a try. Thanks, KevinH Last edited by KevinH; 04-04-2022 at 12:32 PM. |
04-04-2022, 12:15 PM | #112 |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
New Feature Test Builds for those interested
Hi All,
I have posted a new test build (402) for macOS and Windows here: https://github.com/kevinhendricks/Bu...nMac/releases/ The addition is a Replacement Filter tool that will build a table similar to the one created by the Dry Run tool, but instead you can delete the rows from the table of any unwanted replacements, then when you are ready apply the changes. Download: Sigil-master-1fc2a49-build_num-402-Mac.tar.xz or Sigil-master-1fc2a49-build_num-402-Win-Setup.exe To try this new tool, you must ***ALT+click*** on the ReplaceAll button. Note this new tool is modal (blocking) to prevent crashing from user changes behind its back. Note if you build your own on Linux you may have to use META+ALT+click() depending on your distribution, Desktop used, and Qt version. I have tried to add a tool tip to help people remember things. Check out the screenshot of the new Tool tip. Nothing is carved in stone, and we are still actively debating the best way to interface these tools into an already crowed Find and Replace window. Right now we have the following options: a) Use SHIFT and ALT as per the test build but highlight the tooltip and give illustrations in an updated Sigil User Guide. b) Convert Dry Run Replace into a Find All tool with a SHIFT + click on the Count All button (dropping the after replacement part of the table) and make SHIFT+click on ReplaceAll launch the Replacement Filter c) Give the Replace All button and Count All button a pop-up menu (little triangle in the corner) so that you can choose from a menu. d) any other good ideas people may have? Anyway, give this new build and tool a try: Please let us know: - if you think the Replacement Filter makes the Dry Run Replace tool obsolete or visa-versa. - if you think both are valuable? - how best to make these tools available via the very limited space in the Find and Replace dialog? Thanks, KevinH Last edited by KevinH; 04-04-2022 at 04:01 PM. |
04-05-2022, 12:48 AM | #113 | |||
just an egg
Posts: 1,597
Karma: 4798866
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Note: the Replacement Filter tool window didn't hold its geometry at first. I had to close the epub then re-open it. Quote:
Quote:
|
|||
04-05-2022, 09:49 AM | #114 | ||||
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Quote:
Quote:
Quote:
|
||||
04-05-2022, 09:54 AM | #115 |
Wannabe Connoisseur
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
@Kevin - I think there's a bug with the Replacement Filter not notifying Sigil that the document is modified. If I open an epub, do a normal Replace All and then quit Sigil I get the normal "The document has been modified. Do you want to save your changes?" popup. If I open an epub, do an alt-Replace All, click on Apply Changes and quit Sigil it just immediately quits.
|
04-05-2022, 10:33 AM | #116 | |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Good catch ...
I will look into it. Edit: Okay, this was just fixed with my latest push to master. The fix will appear in the final test build hopefully this week sometime. Quote:
Last edited by KevinH; 04-05-2022 at 11:04 AM. |
|
04-05-2022, 10:37 AM | #117 | |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Glad to hear that people like the Replacement Filter as well!
Based on the feedback via pm and issues people have had using ALT on some keyboards and some platforms, it appears that option b) seems to be the best approach: Quote:
The next test build (and hopefully last) will try that approach. Thanks to all who tested and reported back! |
|
04-05-2022, 12:48 PM | #118 | |
just an egg
Posts: 1,597
Karma: 4798866
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Having the replacement part is helpful for testing backreferences. It's the only reason I chose option a) — I didn't want to lose the after replacement part of the Dry Run table. Thanks |
|
04-05-2022, 12:58 PM | #119 |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
That is doable. Makes sense now that I know why it was helpful.
I will add it back. Edit:: Just added it back to master. KevinH Last edited by KevinH; 04-05-2022 at 01:37 PM. |
04-05-2022, 01:36 PM | #120 | |
Sigil Developer
Posts: 7,714
Karma: 5444398
Join Date: Nov 2009
Device: many
|
@snarkophilus
Quote:
It is just that the dialog is already very very wide. Also it is not hard to close the Dialog and re-launch it easily enough, especially if the number of rows to delete are typically quite small. Let me think on it. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible To-Do List for Future Sigil Releases Post Sigil 1.8 | KevinH | Sigil | 143 | 02-05-2022 12:08 PM |
Icon Redesign for future 1.0 Release of Sigil | shorshe | Sigil | 38 | 06-06-2016 11:29 PM |
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook | rosshalde | Sigil | 12 | 11-13-2014 09:34 AM |
Sigil’s Future Direction (Post 0.4.x) | user_none | Sigil | 90 | 10-11-2011 03:28 PM |
Sigil's Future | crutledge | Sigil | 36 | 07-26-2011 06:02 PM |