Ask Your Question
0

Is Find & Replace not working in 5.0

asked 2015-12-23 21:50:48 +0200

rpeasley gravatar image

updated 2015-12-24 13:05:04 +0200

Alex Kemp gravatar image

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?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
0

answered 2015-12-24 13:04:42 +0200

Alex Kemp gravatar image

It is simply that the existing Find/Replace is pants.

edit flag offensive delete link more
0

answered 2015-12-24 14:55:21 +0200

pierre-yves samyn gravatar image

updated 2015-12-24 14:56:55 +0200

Hi

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.

  • Click Format to select Font Italic Style will find only direct formatted words
  • Check Other OptionsIncluding Styles will find direct formatted words and word formatted with the Emphasis character style. Words with multiple attributes will not be found
  • Click No Format▸click Attributes and select Font posture will find every word except those shaped by the character style
  • Add Including Styles will find all words.

You can also install this extension which adds lots of features.

Regards

edit flag offensive delete link more
0

answered 2016-08-04 20:22:31 +0200

Jacob C. gravatar image

updated 2016-08-04 20:31:22 +0200

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:

Search For

.*

bold

Replace with

[b]$0[/b]

Other Options

☑ Regular Expressions

☑ Including Styles

If "Edit>Track Changes>Record Changes" and "Edit>Track Changes>Show Changes" are both enabled, and I hit "Replace All", "Bold phrase #1" becomes "[b]Bold phrase #1[b]Bold phrase #1[/b][/b]".

If "Edit>Track Changes>Record Changes" is enabled and "Edit>Track Changes>Show Changes" is not enabled, "Bold phrase #1" becomes "[b][b]Bold phrase #1[/b][/b]".

(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 "[b]Bold text #1[/b] asdfghjkl [b]Bold text #2[/b] qwertyuiop [b]Bold text #3[/b]"

This is in version 5.1.4.2 .

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-12-23 21:50:48 +0200

Seen: 1,292 times

Last updated: Aug 04 '16