@codemirror/search
Advanced tools
Changelog
6.5.8 (2024-11-22)
Fix a bug that put the selection in the wrong place after running replaceNext
with a regexp query that could match strings of different length.
Changelog
6.5.7 (2024-11-01)
Fix an issue where findNext
and findPrevious
would do nothing when the only match in the document was partially selected.
Fix an infinite loop in SearchCursor
when the normalizer function deletes characters.
Changelog
6.5.6 (2024-02-07)
Make highlightSelectionMatches
include whitespace in the selection in its matches.
Fix a bug that caused SearchCursor
to return invalid ranges when matching astral chars that the the normalizer normalized to single-code-unit chars.
Changelog
6.5.5 (2023-11-27)
Fix a bug that caused codes like \n
to be unescaped in strings inserted via replace placeholders like $&
.
Use the keybinding Mod-Alt-g for gotoLine
to the search keymap, to make it usable for people whose keyboard layout uses Alt/Option-g to type some character.
Changelog
6.5.4 (2023-09-20)
Fix a bug that caused whole-word search to incorrectly check for word boundaries in some circumstances.
Changelog
6.5.3 (2023-09-14)
The gotoLine
dialog is now populated with the current line number when you open it.
Changelog
6.5.2 (2023-08-26)
Don't use the very lowest precedence for match highlighting decorations.
Changelog
6.5.1 (2023-08-04)
Make gotoLine
prefer to scroll the target line to the middle of the view.
Fix an issue in SearchCursor
where character normalization could produce nonsensical matches.
Changelog
6.5.0 (2023-06-05)
The new regexp
option to search
can be used to control whether queries have the regexp flag on by default.