@singapore-editor/find
v0.2.15
Published
Find and replace with regular expressions and case-preserving replacements for the Singapore editor.
Maintainers
Readme
@singapore-editor/find
Find and replace with regular expressions and case-preserving replacements for the Singapore editor.
Part of Singapore. A code editor for the browser that keeps every version.
Install
npm install @singapore-editor/core @singapore-editor/findUsage
import { Editor } from '@singapore-editor/core/editor'
import { createEditorFindPlugin } from '@singapore-editor/find'
const host = document.createElement('div')
host.style.height = '400px'
document.body.append(host)
const editor = new Editor(host, {
plugins: [createEditorFindPlugin()],
})
editor.setText('const value = 1\n')API highlights
createEditorFindPlugin()adds the search widget.editor.openFind()opens search from code.editor.replaceAll()applies the current replacement.
In the Singapore family
@singapore-editor/core owns the editor view. Add this plugin for find and replace.
Singapore README · Documentation
License
MIT. License
