prosekit/extensions/search
Interfaces
Section titled “Interfaces”SearchQueryOptions
Section titled “SearchQueryOptions”Options for defineSearchQuery
Properties
Section titled “Properties”-
search:string -
The search string (or regular expression).
-
replace?:string -
The replace text.
-
caseSensitive?:boolean -
Indicates whether the search is case-sensitive
Default
Section titled “Default”false
-
literal?:boolean -
By default, string search will replace
\n,\r, and\tin the query with newline, return, and tab characters. When this is set to true, that behavior is disabled.Default
Section titled “Default”false
-
regexp?:boolean -
When true, the search string is interpreted as a regular expression.
Default
Section titled “Default”false
-
wholeWord?:boolean -
Enable whole-word matching.
Default
Section titled “Default”false
Functions
Section titled “Functions”defineSearchQuery()
Section titled “defineSearchQuery()”-
function defineSearchQuery(options:SearchQueryOptions):PlainExtension -
Defines an extension that stores a current search query and replace string.
defineSearchCommands()
Section titled “defineSearchCommands()”-
function defineSearchCommands():SearchCommandsExtension -
Defines commands for search and replace.