### Class

# Foundry FileSearchReplacement

since: 1.1

#### Description [src]

    final class Foundry.FileSearchReplacement : GObject.Object
    {
      /* No available fields */
    }

Perform text replacements across search matches.

This class takes a list of `FoundryFileSearchMatch` objects and applies text replacements to each match location. It supports both literal text replacement and regex-based replacement with back references.

The replacement operation is performed asynchronously using fibers, and all edits are applied through the `FoundryTextManager` to ensure proper undo/redo support. The files are saved after applying changes.

Available since: 1.1

#### Ancestors

- GObject

#### Constructors

###### foundry_file_search_replacement_new

Creates a new `FoundryFileSearchReplacement` for performing single or bulk text replacements.

since: 1.1

#### Instance methods

###### foundry_file_search_replacement_apply

Applies the text replacements to all matched locations.

since: 1.1

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct FoundryFileSearchReplacementClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.