MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil-1.8.0 Release (https://www.mobileread.com/forums/showthread.php?t=342523)

PapaKilo 12-18-2021 12:14 PM

Oh, and I never close the Saved Searches window between uses. it always stays open.

I edit stories using Sigil and I use a number of groups of searches to help fix some of the common edits that I find. I use groups that find different classes of things I search for and some of my Groups are 30 or 40 items long.

Using Groups are much more productive than individual searches because I can run through a large number of searches quickly and only stop at the ones I need to. Fix what is needed and run through the Group again until all items have been checked.

For instance I have a group that checks for abbreviations of metrics link mm, cm, etc. which I replace the abbreviation with the full spelling. Like mm to millimeters. But I stop at each instance to see if in fact that's what was meant.

Probably not exactly what Sigil was designed for but it works quite well for it.

I guess I can always go bock to 1.7.

Paul

DiapDealer 12-18-2021 12:33 PM

Then I'm afraid I'm still not replicating your particular issue. The only way I can get Replace to fail is to close the Saved Searches dialog after a Find.

PapaKilo 12-18-2021 01:01 PM

Okay, I'll try again.

Open Saved Searches.

Click on a Group heading.

Click on Find (on Saved Searches dialog box)

When a match is indicated in main window.

Click on Replace in Find and Replace dialog below main window.

Nothing happens no matter how many times I click Replace (Only if Regex is selected) until I do a Find in Find and Replace dialog

KevinH 12-18-2021 01:55 PM

Yourgroup search controls in Saved Searches determines if regex or not. Again what Saved Search Search Controls have you set?

PapaKilo 12-18-2021 02:03 PM

Quote:

Sigil 1.8 introduced the concepts of Search Controls in Saved Searches so the user can now determine all of the FindAndReplace settings from within Saved Search for any group.

What Search Controls have you set for search group?

FWIW, Sigil master has completely changed how Saved Searches are being done so you do not need to use Replace based on seeing the code highlighted in CV and can skip to the next location easily and not be forced back to something you decided not to do a replace on.

So you should be able to do what you want completely inside Saved Searches when Sigil 1.9 is eventually released. These changes mean that Find and Replace no longer uses wrap to mean both wrapping in a single file and wrapping across a set of files. It only controls wrapping inside a single file (current file mode). That also means we have added a Restart search button to FindAndReplace so the user decides when and if to loop back through the targeted set of files.
Okay, would you please elucidate on this please. I cannot find anywhere where anything like this exists in the version of 1.80 that I have installed.

Paul

KevinH 12-18-2021 02:11 PM

In the Saved Search Window:

- widen the window so you can see all column settings
- for any individual saved search double click its that rows controls column
- A pop up dialog that looks just likethe Find and Replace settings should appear.
- use it to set the controls you want
- close it to save

If thissearch is part of a search group,all following searches in that group will effectively inherit those last used settings so you do not need to fill things in (but you can and there isa copy controls and fill context menu if you would like).

PapaKilo 12-18-2021 02:33 PM

Wow, Search controls are super cool. Actually I requested this type of functionality a bunch of years ago. Glad it was finally included.

Oh, yeah. I found it in the Doc.

Doesn't fix my current anomaly, but I'm definitely going to take advantage of it now.

Paul

PapaKilo 12-18-2021 11:04 PM

Tabbed HTML Files does NOT work.
 
Found a Search Controls anomaly.

According to the documentation the code for Target: Tabbed HTML Files = TH.

However when selecting the Tabbed HTML Files option it inserts the code TB instead of TH.

If you try a search the with the code TB in the Find and Replace does NOT set the Target option.

Tabbed HTML Files only works if you set it manually.

Paul

KevinH 12-19-2021 08:48 AM

Yes, known bug already fixed in master.

PapaKilo 12-19-2021 11:46 AM

Okay, Thanks.

What about my other one where Saved Searches Find doesn't set the flag in Find and Replace saying a search has been performed, when in Regex mode as it does in Normal mode?

KevinH 12-19-2021 12:40 PM

I can not recreate that in master at all but that is with macOS. Perhaps DiapDealer can recreate it in his Windows master build. If so, we will track it down and fix it.

DiapDealer 12-19-2021 02:44 PM

I've honestly lost track of what issue I'm looking for here.

DNSB 12-19-2021 05:04 PM

Was that the one where the OP was doing a search from Saved Search using regex, closing Saved Search and doing the replace from the normal Replace button?

KevinH 12-19-2021 05:10 PM

Without closing saved search, I think.

DiapDealer 12-19-2021 07:55 PM

If it's this one, I'll try to recreate it. I was confused by the "setting flags" aspect in their last description of the problem.

Quote:

What about my other one where Saved Searches Find doesn't set the flag in Find and Replace saying a search has been performed, when in Regex mode as it does in Normal mode?

DNSB 12-19-2021 10:27 PM

IF it was the issue I though it was, this was your previous response.

Quote:

Originally Posted by DiapDealer (Post 4181763)
Are you mixing and matching the Find/Replace buttons? Like clicking "Find" from the Saved Search dialog, then closing that dialog and clicking Replace from the regular Find & Replace widget? Because that's the only way I can duplicate what you're experiencing.

If I use the Find and Replace buttons on the Saved Search dialog exclusively, it all works as expected.

If I use all the Find Replace buttons on the Find & Replace widget exclusively, it all works as expected.

If I leave the Saved Searches dialog open, I can even mix and match ("Find" from Saved Searches dialog and "Replace" from the "Find & Replace" widget) and it all works as expected.

The only thing I can find that triggers the behavior you describe is:

1) open Find & Replace widget
2) open Saved Searches dialog
3) select a saved search
4) click "Find" in the Saved Searches dialog (make sure it finds an instance)
5) close the Saved Searches dialog
6) click "Replace" on the Find & Replace Widget
7) nothing happens until clicking "Find (on the F&R widget) again

My advice would be to either 1) don't close the Saved Search dialog before clicking the other Replace button, or 2) Click "Load Search" from the Saved searches dialog; then close the Saved Searches and proceed to use the Find and Replace buttons from the Find & Replace widget.

In short: stick to using only one set of Find & Replace buttons at a time, or leave Saved Searches open.


KevinH 12-19-2021 11:48 PM

We are now talking about whether this issue exists in current master as opposed to Sigil-1.8.0

PapaKilo 12-24-2021 12:51 PM

1) With Find & Replace widget docked at bottom of main screen.
2) Select Regex Mode
3) open Saved Searches dialog
4) select a saved search
5) click "Find" in the Saved Searches dialog (make sure it finds an instance)
6) When the target is found
7) click "Replace" on the Find & Replace Widget
8) nothing happens until clicking "Find (on the F&R widget) again or Replace find or Replace All.

This was first exhibited in 1.80 (for me) the prior version I was using just did the replace function.

It acts (to my thinking) like the flag that says a search has been performed in the F&R widget has not been set.

Sorry about the time lapse, I'm on the road.

PapaKilo

DiapDealer 12-24-2021 07:19 PM

You initially said it was using a Saved Search Group, right?

Because I can't reproduce the problem with your above steps (single search, not group). With the Saved Search (single) still open, the Replace works as expected for me (Windows 10, Sigil 1.8.0).

I haven't gotten around to creating a group of regex Saved Searches yet.

PapaKilo 12-24-2021 11:38 PM

It does the same with either a Group or individual.

When I mentioned using a Group I was was referring to not being able to use Find and then Replace on the Saved Searches dialog instead of the Replace on F&R widget.


All times are GMT -4. The time now is 08:13 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.