prosekit/extensions/search
Interfaces
Section titled “Interfaces”SearchQueryOptions
Section titled “SearchQueryOptions”Options for defineSearchQuery
Properties
Section titled “Properties”-
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\t
in 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
-
replace?:
string
-
The replace text.
-
search:
string
-
The search string (or regular expression).
-
wholeWord?:
boolean
-
Enable whole-word matching.
Default
Section titled “Default”false
Functions
Section titled “Functions”defineSearchCommands()
Section titled “defineSearchCommands()”-
function defineSearchCommands():
SearchCommandsExtension
-
Defines commands for search and replace.
defineSearchQuery()
Section titled “defineSearchQuery()”-
function defineSearchQuery(
options
:SearchQueryOptions
):PlainExtension
-
Defines an extension that stores a current search query and replace string.