@codemirror/search
Advanced tools
Changelog
6.3.0 (2023-03-20)
The new scrollToMatch
search option allows you to adjust the way the editor scrolls search matches into view.
Changelog
6.2.3 (2022-11-14)
Fix a bug that hid the search dialog's close button when the editor was read-only.
Changelog
6.2.2 (2022-10-18)
When literal
is off, \n, \r, and \t escapes are now also supported in replacement text.
Make sure search dialog inputs don't get treated as form fields when the editor is created inside a form.
Fix a bug in RegExpCursor
that would cause it to stop matching in the middle of a line when its current match position was equal to the length of the line.
Changelog
6.2.1 (2022-09-26)
By-word search queries will now skip any result that had word characters both before and after a match boundary.
Changelog
6.2.0 (2022-08-25)
A new wholeWord
search query flag can be used to limit matches to whole words.
SearchCursor
and RegExpCursor
now support a test
parameter that can be used to ignore certain matches.
Changelog
6.1.0 (2022-08-16)
Fix an infinite loop when the match position of a RegExpCursor
ended up in the middle of an UTF16 surrogate pair.
The literal
search option can now be set to make literal queries the default.
The new searchPanelOpen
function can be used to find out whether the search panel is open for a given state.
Changelog
6.0.1 (2022-07-22)
findNext
and findPrevious
will now return to the current result (and scroll it into view) if no other matches are found.
Changelog
6.0.0 (2022-06-08)
Don't crash when a custom search panel doesn't have a field named 'search'.
Make sure replacements are announced to screen readers.
Changelog
0.20.1 (2022-04-22)
It is now possible to disable backslash escapes in search queries with the literal
option.