On 19 Aug 2021, at 15:18, mwra wrote:

I'm currently re-using grep find/replace via the Find dialog because I
can't find a way to save and sequentially apply a number of find/replace
tasks (e.g. 4 or 5 discrete tasks) to a file.
It feels like a Text Factory is the place to do this but it's not to clear.

That is the exact purpose of a Text Factory; namely, applying a sequence of transformations to an input text. The input can either be a specifically chosen file; or a folder; or some of each.

You can also apply a Text Factory to the contents or selection of the active document by saving the factory into BBEdit's "Text Filters" folder.

There's an entire section of Chapter 5 of the manual devoted to text factories; and I'm sure Tech Support would be delighted to hear about any errors or omissions there.

It looks like the rather un-intuitively titled "Replace all" option is the way to go but to to easily re-use find/Replace parings you need to save
those as a saved pattern (correct term?)

There's no need to save a pattern before using it in a text factory; you can directly enter whatever you like in the fields for the "Replace All" action; or copy and paste a pattern that you've worked out in the Find window.

If you *already* have a saved pattern, that certainly saves a copy/paste; but it is by no means required, necessary, or mandatory.

The "Replace All" text factory action performs the same operation as the "Replace All" item on the Search menu and the "Replace All" button in the Find window. Naming the text factory action anything else would be counterintuitive.

R.

--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8347A1D4-7D5C-41EA-B30F-051E9EAE1297%40barebones.com.

Reply via email to