---
title: "Behind the feature: Find and replace"
description: "Find and replace in Figma and FigJam turned out to be far harder than a search bar because canvas content is multi-directional, so result ordering had to be designed rather than inherited."
url: "https://swe.quest/articles/behind-the-feature-find-and-replace-2ebc376de57a3841"
canonical: "https://www.figma.com/blog/behind-the-feature-find-and-replace/"
source: "Figma"
published: "2022-10-06"
difficulty: "easy"
kind: "Case study"
reading_minutes: 9
tags: ["product-engineering","search","algorithms"]
---

# Behind the feature: Find and replace

A post on [Figma](https://swe.quest/sources/figma.md), published 2022-10-06, 9 min read, Case study. Original: [https://www.figma.com/blog/behind-the-feature-find-and-replace/](https://www.figma.com/blog/behind-the-feature-find-and-replace/)

## Summary

Find and replace in Figma and FigJam turned out to be far harder than a search bar because canvas content is multi-directional, so result ordering had to be designed rather than inherited. The team first reused the prototyping engine's row-by-row sort, then moved to sorting by FigJam sections, a proximity-based spatial grouping algorithm, and heuristics where tall sections sort left-to-right and wide ones top-to-bottom. Zooming targets an 'effective font size' range (font size × zoom), and panning only happens when a match leaves an invisible central box. In Figma, search moved into the layers pane to favor layer and page search over consistency with FigJam, Enter-key behaviour was settled through internal testing, and smarter casing rules replaced the plugin's 'Keep original case' setting.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Keywords

Figma, FigJam

## Related posts

- [How we built AI search in Figma](https://swe.quest/articles/how-we-built-ai-search-in-figma-a7e536f5730f5136.md): Figma · 2024-10-25 · Easy · 10 min read · Search, Evaluation, Product engineering, RAG & retrieval
  Figma pivoted from an AI design-autocomplete prototype to shipping visual and semantic search after research showed 75% of objects added to the canvas come from other files and designers struggle to find mid-level frames.
- [Version control: Three ways Figma explored horizontal scrolling](https://swe.quest/articles/version-control-three-ways-figma-explored-horizontal-scrolling-b5d14a196ba742eb.md): Figma · 2025-04-16 · Medium · 7 min read · Frontend, Product engineering, React
  Adding horizontal scrolling to Figma's Layers panel was harder than expected because the list is virtualized (only visible rows render), rows are interactive (hide, lock, collapse, rename), and layer names vary in length.
- [A conversation with Figma's accessibility team](https://swe.quest/articles/a-conversation-with-figma-s-accessibility-team-4d7c0aee064f1f20.md): Figma · 2022-11-17 · Easy · 9 min read · Accessibility, Frontend
  Figma's accessibility engineers and PM reflect on shipping screen reader support for prototypes and a FigJam beta.
- [The infrastructure behind AI search in Figma](https://swe.quest/articles/the-infrastructure-behind-ai-search-in-figma-b7fada64ae683a10.md): Figma · 2024-10-15 · Medium · 10 min read · Vector search, Search, Cost optimization, Inference & serving, Scaling
  Figma's AI search embeds frames and published components with a CLIP-based multimodal model, so screenshots, layer selections and text all query one vector space.
- [Improving performance in the layers panel](https://swe.quest/articles/improving-performance-in-the-layers-panel-1cd0d897a08e1393.md): Figma · 2026-06-11 · Medium · 8 min read · Performance engineering, Frontend, Caching, Data structures
  Figma rebuilt its layers panel to fix two problems: it computed data for every expanded node, and it recomputed everything after any change.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
