# Find and Replace in Hana (/hana-a-canvas-for-interactivity/basics/find-and-replace-in-hana)

> Find layers by name or text with ⌘F, replace text across a Hana file, and rename many layers at once with batch rename.



On Windows, use Ctrl wherever this page says ⌘.

## Find (⌘F) [#find-f]

Press ⌘F, or choose &#x2A;*Find and Replace…** in the command palette. The find panel opens on the **Layers** tab.

Type in **Find layers or text**. The layer tree filters down to the layers whose name or text contains what you typed. To narrow it further, pick a layer type: **All**, **Text**, **Frames**, **Shapes**, **Images** or **Components**.

Use the previous and next arrows to step through the matches on the canvas. Press Esc or the &#x2A;*×** to close the panel.

## Replace [#replace]

Type the new text in **Replace text with**, then:

* **Replace** – Replaces the text in the current match and moves on to the next one.
* **Replace all** – Replaces it in every matching text layer.

Replace changes the text inside text layers, not layer names. To change names, use batch rename below.

## Batch rename (⌘R) [#batch-rename-r]

With one layer selected, ⌘R renames it in place, in the Layers panel. With several layers selected, ⌘R opens the batch rename dialog:

* **Match** – Only rename this part of each name. Leave it empty to replace the whole name.
* **Rename to** – The new name. It can include placeholders:
  * `$&` – the current name (or, with **Match** set, the matched text)
  * `$nn` – a number counting up, from the top layer down
  * `$NN` – a number counting down
* **Start at** – The first number for `$n` and `$N`.

The number of `n`s sets the zero-padding: `Card $nn` gives **Card 01**, **Card 02**, and so on. The dialog previews the new names before you apply them.

Related: [Command palette and keyboard shortcuts in Hana](https://docs.spline.design/hana-a-canvas-for-interactivity/basics/command-palette-and-shortcuts-in-hana.md)
