Find & Replace
Plugins Info
Find & Replace searches literal text in the current document body, including tables. It supports case-sensitive and whole-word matching, navigating matches, and replacing one or all matches.
Headers, footers, comments, drawings, regular expressions, formatting search, and special characters are not supported.
Plugin Mode
Installation
Shell
pnpm add @univerjs/find-replace @univerjs/docs-find-replaceShell
npm install @univerjs/find-replace @univerjs/docs-find-replaceShell
yarn add @univerjs/find-replace @univerjs/docs-find-replaceShell
bun add @univerjs/find-replace @univerjs/docs-find-replaceUsage
TypeScript
import { LocaleType, mergeLocales, Univer } from '@univerjs/core'import { UniverDocsFindReplacePlugin } from '@univerjs/docs-find-replace'import FindReplaceEnUS from '@univerjs/find-replace/locale/en-US'import '@univerjs/find-replace/lib/index.css'const univer = new Univer({ locale: LocaleType.EN_US, locales: { [LocaleType.EN_US]: mergeLocales(FindReplaceEnUS), },})univer.registerPlugin(UniverDocsFindReplacePlugin)Keyboard Shortcuts
Ctrl/Cmd + F: open findCtrl/Cmd + H: open replaceEnter/Shift + Enter: next / previous matchEscape: return focus to the document
How is this guide?