* Plugin: Search and Replace Text - Skip?
Plugin: Search and Replace Text - Skip?
When prompting whether to replace text, you get the buttons 'OK' and 'Cancel'. Is it possible to have a 'Skip' button so that you can keep some searches and change others?
ID:5285
ID:5285
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
I'll have a look at the plug in and see what I can do.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
I think I found a 'bug' in the IUP.GetParm so I will need to redo the dialog to use a full blown IUP dialog, but in the meantime I have added a checkbox to all you to skip items and added a result set to the end to show what you have changed.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
Plugin: Search and Replace Text - Skip?
That change works fine now Jane. I can see the plugin being really useful to me. [smile]
Plugin: Search and Replace Text - Skip?
As an aside Jane as you asked about testing the plugin rating and commenting. I posted a rating and comment, hit submit, the page refreshed with the comment but without the rating. I hit F5 to refresh and ended up with 2 identical comments. The rating was shown this time though. I should probably have navigated away from the page and back again rather than refreshing.
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
I'll see if I can do anything on that one.
I think I have fixed that 'feature' can you give it another try please.
I think I have fixed that 'feature' can you give it another try please.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
I have updated the Search and replace plugin to provide a skip button and the option to turn off the prompting, you can download it from the Plugin Store.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Plugin: Search and Replace Text - Skip?
Tried this latest Search and Replace Text, but with following repeatable odd results.
Search For: Fuller
Replace with: Fuler
Confirm Every Change: Ticked
Names: Ticked
and all other options clear.
Found only one record:
INDI:NAME Ethel Mary FULLER
Replace: Ethel Mary /Fuller/
With: Ethel Mary /Fuler/
Clicked the Skip button.
Gave following Result Set:

1st Record:
Primary Name: Ethel Mary /Fuller/
Alternate Name: Emma /Bradshaw-Fuler/
2nd Record:
Primary Name: Edward Thomas /Bradshaw/
Alternate Name: Edward Thomas Bradshaw /Fuler/
So two problems:
(1) Only reported finding Fuller once even though there are three occurrences in two records.
(2) Despite using Skip it still replaced the two Alternate Name occurrences.
If instead of Skip I choose Ok each time, then it finds and changes all three occurrences correctly.
If I choose Ok for 1st Record Primary Name change, and then Skip for 1st Record Alternate Name change, then those are honoured correctly, but the 2nd Record Alternate Name is also changed without any prompt.
Search For: Fuller
Replace with: Fuler
Confirm Every Change: Ticked
Names: Ticked
and all other options clear.
Found only one record:
INDI:NAME Ethel Mary FULLER
Replace: Ethel Mary /Fuller/
With: Ethel Mary /Fuler/
Clicked the Skip button.
Gave following Result Set:

1st Record:
Primary Name: Ethel Mary /Fuller/
Alternate Name: Emma /Bradshaw-Fuler/
2nd Record:
Primary Name: Edward Thomas /Bradshaw/
Alternate Name: Edward Thomas Bradshaw /Fuler/
So two problems:
(1) Only reported finding Fuller once even though there are three occurrences in two records.
(2) Despite using Skip it still replaced the two Alternate Name occurrences.
If instead of Skip I choose Ok each time, then it finds and changes all three occurrences correctly.
If I choose Ok for 1st Record Primary Name change, and then Skip for 1st Record Alternate Name change, then those are honoured correctly, but the 2nd Record Alternate Name is also changed without any prompt.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
Thanks Mike,
Fixed I think.
Fixed I think.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Plugin: Search and Replace Text - Skip?
Yes, that seems OK.
But, the Family Historian Text Search and Replace confirm change window is another example of a non-'sticky' FH window that does not remember its size and position.
Furthermore, would it be useful if your Plugin window was 'sticky' and remembered its size, position, and settings?
But, the Family Historian Text Search and Replace confirm change window is another example of a non-'sticky' FH window that does not remember its size and position.
Furthermore, would it be useful if your Plugin window was 'sticky' and remembered its size, position, and settings?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8440
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Plugin: Search and Replace Text - Skip?
As you will see I am currently using GetParam, which does not support any sizing settings.
I will need to completely re-write the plug in to support using full iup.dialogs, the idea with the ones I have done so far was to try and keep the coding simple so other people could use them as a base, hence the use of GetParam.
I will need to completely re-write the plug in to support using full iup.dialogs, the idea with the ones I have done so far was to try and keep the coding simple so other people could use them as a base, hence the use of GetParam.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 27075
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Plugin: Search and Replace Text - Skip?
OK, understood, but perhaps the text strings and tick settings could be 'sticky'?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry