I can find text as long as I don’t try to search for text with a specific format. Is this program error or am I missing something?
It is simply that the existing Find/Replace is pants.
I do not reproduce the problem, but some options may be needed…
Take the example of a text with words in italics. Some formatted by the toolbar, other by the Emphasis
character style, others have several attributes: italic and bold for example.
Formatto select Font Italic Style will find only direct formatted words
Including Styleswill find direct formatted words and word formatted with the Emphasis
character style. Words with multiple attributes will not be found
Font posturewill find every word except those shaped by the character style
Including Styleswill find all words.
You can also install this extension which adds lots of features.
A late answer, but I hope this helps you or others. I’ve discovered that turning off Track Changes made it work properly for me. Otherwise there’s a very buggy interaction between the change-tracking process and the replacement mechanism.
If tracking is on, Find & Replace was only matches the first occurrence when I hit “Replace All”, and the replacement is done twice in one of several glitchy ways:
E.g., let’s say I search on the text “Bold text #1 asdfghjkl Bold text #2 qwertyuiop Bold text #3”, with the following Find & Replace dialog settings:
If “Edit>Track Changes>Record Changes” and “Edit>Track Changes>Show Changes” are both enabled, and I hit “Replace All”, “Bold phrase #1” becomes “Bold phrase #1Bold phrase #1”.
If “Edit>Track Changes>Record Changes” is enabled and “Edit>Track Changes>Show Changes” is not enabled, “Bold phrase #1” becomes “Bold phrase #1”.
(In this example, the replacement matches the original regex. If the replacement itself doesn’t match the original regex, the replacement just gets repeated, not nested-- eg. “Replace all” for A->B results in “A” becoming “BB”.)
If change-tracking options are disabled entirely, the Replace All works properly, making “Bold text #1 asdfghjkl Bold text #2 qwertyuiop Bold text #3”
This is in version 22.214.171.124 .