![]() |
#91 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
With a lot of feedback from people who build their own, the DryRun ReplaceAll capability has now been added to master and some form of it will appear in the next release.
|
![]() |
![]() |
![]() |
#92 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
|
![]() |
![]() |
Advert | |
|
![]() |
#93 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
![]() Currently I use the same method as Turtle91 described previously. |
|
![]() |
![]() |
![]() |
#94 |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
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 - Can you please pop a Windows build on your github page? I too would love to try this out.
|
![]() |
![]() |
![]() |
#95 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Okay, but nothing is final and everything is subject to change:
See: https://github.com/kevinhendricks/Bu...OnMac/releases Look for Build 397. To try it. Set up Find and Replace to find and replace something and set to all html files, Then hold the SHIFT key down as you click on ReplaceAll. You should see the DryRun table. If you double-click on a table entry it will open CV there. You can adjust the amount of context chars before and after. If you make changes you will need to hit Refresh to get updated positions. If you edit things in a file in the original order (bottom of file to top, in spine order, all of your remaining offsets in that file will stay correct. But the columns are sortable. So if you want you first sort on offset, and then filename. There is a filter. You can close it at anytime. It will not make any changes. Once closed you can of course click ReplaceAll to make the actual changes. Please note, there are other variations on how best to do this so expect changes before this appears in a release. Last edited by KevinH; 04-02-2022 at 10:36 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#96 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Awesome! Can I make a small request?
As popular as I anticipate this option being... can you allow some form of option setting so we don't have to remember to select shift first? A button, checkbox, or preferences setting??? |
![]() |
![]() |
![]() |
#97 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Sorry. Probably not. DryRun is extra and it will not do a real replace all. It is for validating things before running an actual ReplaceAll if you choose to do one.
Also the Find and Replace dialog is height limited and quite space constrained. I hope to squeeze in a Text only checkbox some day but even that will push the limits. And as I said, it does not actually do anything. You still need to use normal Replace All to actually change things in the epub. So it can not replace the ReplaceAll button or function. So just like using Control + click limits things to use only the current file, SHIFT + click will run the DryRun. I will add info on using Shift to the tool tip. This info will also be added to the Sigil user guide eventually if the tool does not evolve into something else yet again. Last edited by KevinH; 04-02-2022 at 11:58 AM. |
![]() |
![]() |
![]() |
#98 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
FWIW, I just now added an alternative dialog called the Replacement Chooser that can be launched by ALT+click on the ReplaceAll button. It shows a similar table but it is blocking (modal) but you can delete selected rows of any match/replacements in the table you do not want by hitting the delete key, then hit apply to make just the remaining changes.
Once I iron out some remaining issues and get it a bit more polished early next week, I will post an updated test build. This type of dialog tool might be more useful than the dry-run in the end but it will *not* allow you to double click to hop to CV since it must be blocking for safety (so you can't make changes behind its back - so to speak). |
![]() |
![]() |
![]() |
#99 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
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:
My only nit is that it doesn't remember the dry run window geometry. It starts with the "after" column truncated. If I widen the window, close it, try a different dry rum, then the window restores to its original size and I need to resize to see the full "after" column again. |
|
![]() |
![]() |
![]() |
#100 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
So I can grow the geometry and have it saved when I close the window but the next search may still need adjusting depending on the length of the match and replace strings in that search. Last edited by KevinH; 04-03-2022 at 09:09 AM. |
|
![]() |
![]() |
![]() |
#101 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Not sure if this is possible, but one thing I would like to see is the action 'open with' in Book Browser being able to operate on a group of files.
At the moment this has to be done one file at a time, so I find myself constantly switching back and forth when I editing a group of images in Photoshop. |
![]() |
![]() |
![]() |
#102 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
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:
This is with 64-bit Windows 10 version 21H1. I don't seem to have any other saved-geom issues - the main window, preview window, saved searches windows etc all work as expected. |
|
![]() |
![]() |
![]() |
#103 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
I am not seeing that on my macOS build. It saves the settings to the sigil.ini file when it is closed and that dialog's destructor is called. Perhaps something is delaying the destructor being invoked? So I just added a closeEvent handler to save to the geometry to the ini file earlier. Hopefully this will fix the issue you are seeing.
One thing to do is try your test again and after resizing and closing but before opening it again, please look in the sigil.ini file for the "dryrun_report" group heading and look for a "geometry" entry under it to verify something is being saved. If so, then the problem may be related to the ReadSettings. Thanks, Kevin Quote:
|
|
![]() |
![]() |
![]() |
#104 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,766
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Quote:
It should pass out the path of the current OPF which a batch file could parse and batch open any editor you want with all of the images. It would be a bit tricky but doable. In BookBrowser, what happens now if you block select a bunch of images and try to do an Open With? Also this would be doable via a custom plugin as well. |
|
![]() |
![]() |
![]() |
#105 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
Quote:
The batch file method sounds a little complicated, and is probably beyond what I was looking for. Thanks anyway. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |