Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/commands

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/commands - npm Package Versions

1245

6.1.0

Diff

Changelog

Source

6.1.0 (2022-08-18)

Bug fixes

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.

New features

The new cursorLineBoundaryLeft/Right and selectLineBoundaryLeft/Right commands allow directional motion to line boundaries.

marijn
published 6.0.1 •

Changelog

Source

6.0.1 (2022-06-30)

Bug fixes

Announce to the screen reader when the selection is deleted.

Also bind Ctrl-Shift-z to redo on Linux.

marijn
published 6.0.0 •

Changelog

Source

6.0.0 (2022-06-08)

Bug fixes

Fix a bug where by-page selection commands sometimes moved one line too far.

marijn
published 0.20.0 •

Changelog

Source

0.20.0 (2022-04-20)

Breaking changes

There is no longer a separate commentKeymap. Those bindings are now part of defaultKeymap.

Bug fixes

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.

New features

The exports from @codemirror/comment are now available in this package.

The exports from the @codemirror/history package are now available from this package.

marijn
published 0.19.8 •

Changelog

Source

0.19.8 (2022-01-26)

Bug fixes

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.

marijn
published 0.19.7 •

Changelog

Source

0.19.7 (2022-01-11)

Bug fixes

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.

marijn
published 0.19.6 •

Changelog

Source

0.19.6 (2021-12-10)

Bug fixes

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.

marijn
published 0.19.5 •

Changelog

Source

0.19.5 (2021-09-21)

New features

Adds an insertBlankLine command which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.

marijn
published 0.19.4 •

Changelog

Source

0.19.4 (2021-09-13)

Bug fixes

Make commands that affect the editor's content check state.readOnly and return false when that is true.

marijn
published 0.19.3 •

Changelog

Source

0.19.3 (2021-09-09)

Bug fixes

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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc