@codemirror/commands
Advanced tools
Changelog
6.7.1 (2024-10-21)
Change toggleBlockCommentByLine
to not affect lines with the selection end right at their start.
Changelog
6.7.0 (2024-10-07)
Bind Shift-Enter to the same command as Enter in the default keymap, so that it doesn't do nothing when on an EditContext-supporting browser.
Add commands for by-string-index cursor motion that ignores text direction.
Changelog
6.6.2 (2024-09-17)
Fix an issue causing selectParentSyntax
to not select syntax that is a direct child of the top node.
Make selectParentSyntax
return false when it doesn't change the selection.
Changelog
6.6.1 (2024-08-31)
Fix a bug in the undo history that would cause it to incorrectly track inverted effects when adding multiple edits to a single history event.
Changelog
6.6.0 (2024-06-04)
The new toggleTabFocusMode
and temporarilySetTabFocusMode
commands provide control over the view's tab-focus mode.
The default keymap now binds Ctrl-m (Shift-Alt-m on macOS) to toggleTabFocusMode
.
Changelog
6.5.0 (2024-04-19)
The insertNewlineKeepIndent
command inserts a newline along with the same indentation as the line before.
Changelog
6.4.0 (2024-04-17)
Fix an issue where deleteLine
sometimes leaves the cursor on the wrong line.
The new deleteCharBackwardStrict
command just deletes a character, without further smart behavior around indentation.
Changelog
6.3.3 (2023-12-28)
Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.
Changelog
6.3.2 (2023-11-28)
Fix a regression that caused deleteCharBackward
to sometimes delete a large chunk of text.