@codemirror/commands
Advanced tools
Changelog
6.3.0 (2023-09-29)
Make it possible for selectParentSyntax
to jump out of or into a syntax tree overlay.
Make Cmd-Backspace and Cmd-Delete on macOS delete to the next line wrap point, not the start/end of the line.
The new deleteLineBoundaryForward
and deleteLineBoundaryBackward
commands delete to the start/end of the line or the next line wrapping point.
Changelog
6.2.5 (2023-08-26)
Make insertNewlineAndIndent
properly count indentation for tabs when copying over the previous line's indentation.
The various sub-word motion commands will now use Intl.Segmenter
, when available, to stop at CJK language word boundaries.
Fix a bug in insertNewlineAndIndent
that would delete text between brackets if it had no corresponding AST node.
Changelog
6.2.4 (2023-05-03)
The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.
Changelog
6.2.3 (2023-04-19)
Block commenting the selection no longer includes indentation on the first line.
Changelog
6.2.2 (2023-03-10)
Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.
Changelog
6.2.1 (2023-02-15)
Keep cursor position stable in cursorPageUp
/cursorPageDown
when there are panels or other scroll margins active.
Make sure toggleComment
doesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.
Changelog
6.2.0 (2023-01-18)
The new joinToEvent
history configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.
Changelog
6.1.3 (2022-12-26)
Preserve selection bidi level when extending the selection, to prevent shift-selection from getting stuck in some kinds of bidirectional text.
Changelog
6.1.2 (2022-10-13)
Fix a bug that caused deletion commands on non-empty ranges to incorrectly return false and do nothing, causing the editor to fall back to native behavior.