Search for text/pattern in SuperEditor content. Select text and apply different sizes. Supports pt, px, em, and rem units with automatic min/max clamping.

Why you’d use this

  • Find and replace: quickly locate words or phrases and replace them.
  • Content navigation: jump to the next or previous match without scrolling manually.
  • Highlighting: visually emphasize search results for the user.
  • Custom workflows: integrate search into toolbars, command palettes, or keyboard shortcuts.

Commands

Searches for the string match in Editor content
search('text')

goToFirstMatch

Navigates to the first search match
goToFirstMatch()

goToSearchResult

Navigates to the selected match
goToSearchResult(result[0])