Find & Replace Style (Scrivener 3)

I would like to ask a “Find & Replace Style” function. It wold have been extremely useful for the work I’m doing. I would also be happy of learning of any alternative method to replace a text style with a different one.

For example, I may want to replace “No Style” paragraphs with “Body” ones. Or some “Body” paragraphs with something like “Indented” or “List NoNumber”. Searching, or searching and replacing, would speed the work considerably.

Paolo

Moving to a new topic, to avoid confusing Scrivener 2 and Scrivener 3 functionality.

The challenge with “Find by formatting” searches is that they are very slow. That’s why Find by formatting isn’t an option in the Project Search, for instance.

Just trying: since it is no longer a matter of examining text formatting, but finding a “text style tag”, wouldn’t it be much faster now?

Paolo

If you have a style, which, for example is called Highlights, which shows up as Times Roman in green and italics, whereas the rest of your work for No Style in Scrivener would be in Aptos in the default colour and regular text, then you are able to change the Highlights Style once and have it permeate the change throughout your project.
All you do is Redefine the Paragraph (or Character) Style from Selection once you’ve selected the particular style in the Styles Panel.

1 Like

It’s not a matter of making one style’s properties propagate to the text with the same style. It is a matter of replacing a style with another. Not its look – the style.

Paolo

Style is nothing but packaged formatting (look).

1 Like

No. Styles are a structural element, that happens to also have formatting.

Why don’t you apply yourself to following my recommendations instead of arguing semantics.
You may find the solution’s been at hand all along.

No point in arguing.

I understand where @ptram is coming from. I can see the need for a way of replacing the style assignment of a range of paragraphs with a different style assignment, while still preserving the existence of the first style.

What you are proposing @Kevitec57 would not do that but would change the original style’s definition, which is not the same thing.

I myself would do such style replacements on the compiled file using my word processor where it would be easy to do, but from @ptram’s many posts here, I know that his workflow is more technical and complicated than mine.

:slight_smile:
Mark

2 Likes

As the person asking the question, it’s safe to assume that @ptram knows what he’s trying to achieve.

This statement is incorrect, especially for people with complicated post-Scrivener workflows. A (Scrivener) Style applies a label to text. That label can be interpreted in a variety of ways, one of which is as formatting instructions.

2 Likes

I believe Scrivener may already have all of the tools you would need to perform these kinds of tasks. Most of them are found in the ••• button of the floating styles panel, but they can also be bound to shortcuts from the Edit ▸ Select submenu.

Here is a longer write-up, written more from the standpoint of taking ad hoc formatting and properly styling it (and why that is a good thing to do), but there is also a command for selecting all text of the same style, as well.

And of course, if you are looking for a more one-by-one process where you are evaluating a match for whether it should have its style changed or one applied to it, then Find by Formatting is the right tool for the job. There isn’t much that could be improved there for that.

2 Likes

Well, well, well, you live and learn! :smiley: I never knew those commands were there.

Actually:

  • I don’t have the style panel open; such styles as I use I have shortcuts for and so don’t really need the panel.
  • When I have had need to create or modify a style, I do that from Format → Style → …, so never thought to look under the Edit menu.
  • In point of fact, for as long as I can remember, the only point on the edit menu I have accesed is Text Tidying…, and I know that is down near the bottom so my line of sight is well down below Search.
  • Result, I have never explored either Edit → Search or the “Gear” (on the Mac) dropdown menu on the Styles Panel.

But then, as I said, I tend to do all my styles manipulation post compile in Nisus Writer Pro. In fact, like Paolo I use the styles in Scrivener more as markup than formatting.

:smiley:
Mark

1 Like

Oh weird, it is a gear on the Mac for some reason. It should be an “alien face” icon at this point, I think. Gears are now meant more to be reserved for settings. But anyway…

The Edit ▸ Select submenu is one of those treasures that deserves more attention! There are some really handy commands in there.

Yeah, the notion that styles are nothing but formatting is a bit peculiar given how I use them. :smiley: Most of them don’t even have any notable formatting to speak of, beyond the cosmetic highlight colour the style settings offer.

I only have “Block Quote” and “No Indent” and an “ingredients list” (for my recipe collection) styles used in-text, and they are merely ruler settings. I do have Heading 1 to Heading 4 set up, but all headings are assigned from binder titles on compiling. They have font size differentiation basically as a result of past practice, but as all styles get modified by an NWP macro immediately after compile, all that matters is the style assignment.

Although I use Mmd/Pandoc in stuff for the website, and I spent time last year exploring Typst (which I would love to use more), since the beginning of this year there has been far too much on my plate to give me time to continue with that at the moment. So most of what I do is RTF-based.

Mark

Unfortunately, the Select Similar Formatting command in the Styles palette doesn’t work. Not only the (undesired) No Style text is selected, but also all the Body text, that has the same formatting.

Applying the Body style to all the selected text would scramble the applied character styles, that will get part of the default appearance (for example, the Palatino font instead of the one chosen for that character style).

I can’t exclude that replacing a style with another one would preserve this type of nested formatting, but so I hope.

Paolo