@codemirror/commands
Advanced tools
Changelog
0.19.2 (2021-08-24)
New commands cursorSubwordForward
, cursorSubwordBackward
, selectSubwordForward
, and selectSubwordBackward
which implement motion by camel case subword.
Changelog
0.19.0 (2021-08-11)
Change default binding for backspace to deleteCharBackward
, drop deleteCodePointBackward
/Forward
from the library.
defaultTabBinding
was removed.
Drop Alt-d, Alt-f, and Alt-b bindings from emacsStyleKeymap
(and thus from the default macOS bindings).
deleteCharBackward
and deleteCharForward
now take atomic ranges into account.
Attach more granular user event strings to transactions.
The module exports a new binding indentWithTab
that binds tab and shift-tab to indentMore
and indentLess
.
Changelog
0.18.3 (2021-06-11)
moveLineDown
will no longer incorrectly grow the selection.
Line-based commands will no longer include lines where a range selection ends right at the start of the line.
Changelog
0.18.2 (2021-05-06)
Use Ctrl-l, not Alt-l, to bind selectLine
on macOS, to avoid conflicting with special-character-insertion bindings.
Make the macOS Command-ArrowLeft/Right commands behave more like their native versions.
Changelog
0.18.1 (2021-04-08)
Also bind Shift-Backspace and Shift-Delete in the default keymap (to do the same thing as the Shift-less binding).
Adds a deleteToLineStart
command.
Adds bindings for Cmd-Delete and Cmd-Backspace on macOS.
Changelog
0.17.5 (2021-02-25)
Use Alt-l for the default selectLine
binding, because Mod-l already has an important meaning in the browser.
Make deleteGroupBackward
/deleteGroupForward
delete groups of whitespace when bigger than a single space.
Don't change lines that have the end of a range selection directly at their start in indentLess
, indentMore
, and indentSelection
.
Changelog
0.17.4 (2021-02-18)
Fix a bug where deleteToLineEnd
would delete the rest of the document when at the end of a line.