@codemirror/commands
Advanced tools
Changelog
6.1.0 (2022-08-18)
Prevent native behavior on Ctrl/Cmd-ArrowLeft/ArrowRight bindings, so that browsers with odd bidi behavior won't do the wrong thing at start/end of line.
Cmd-ArrowLeft/Right on macOS now moves the cursor in the direction of the arrow even in right-to-left content.
The new cursorLineBoundaryLeft
/Right
and selectLineBoundaryLeft
/Right
commands allow directional motion to line boundaries.
Changelog
6.0.1 (2022-06-30)
Announce to the screen reader when the selection is deleted.
Also bind Ctrl-Shift-z to redo on Linux.
Changelog
6.0.0 (2022-06-08)
Fix a bug where by-page selection commands sometimes moved one line too far.
Changelog
0.20.0 (2022-04-20)
There is no longer a separate commentKeymap
. Those bindings are now part of defaultKeymap
.
Make cursorPageUp
and cursorPageDown
move by window height when the editor is higher than the window.
Make sure the default behavior of Home/End is prevented, since it could produce unexpected results on macOS.
The exports from @codemirror/comment are now available in this package.
The exports from the @codemirror/history package are now available from this package.
Changelog
0.19.8 (2022-01-26)
deleteCharBackward
now removes extending characters one at a time, rather than deleting the entire glyph at once.
Alt-v is no longer bound in emacsStyleKeymap
and macOS's standardKeymap
, because macOS doesn't bind it by default and it conflicts with some keyboard layouts.
Changelog
0.19.7 (2022-01-11)
Don't bind Alt-< and Alt-> on macOS by default, since those interfere with some keyboard layouts. Make cursorPageUp/Down scroll the view to keep the cursor in place
cursorPageUp
and cursorPageDown
now scroll the view by the amount that the cursor moved.
Changelog
0.19.6 (2021-12-10)
The standard keymap no longer overrides Shift-Delete, in order to allow the native behavior of that key to happen on platforms that support it.
Changelog
0.19.5 (2021-09-21)
Adds an insertBlankLine
command which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.
Changelog
0.19.4 (2021-09-13)
Make commands that affect the editor's content check state.readOnly
and return false when that is true.
Changelog
0.19.3 (2021-09-09)
Make by-line cursor motion commands move the cursor to the start/end of the document when they hit the first/last line.
Fix a bug where deleteCharForward
/Backward
behaved incorrectly when deleting directly before or after an atomic range.