You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@codemirror/commands

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/commands - npm Package Versions

2345

6.8.1

Diff
m
marijn
published 6.8.1 •

Changelog

Source

6.8.1 (2025-03-31)

Bug fixes

Fix an issue where creating a comment for a line that starts an inner language would use the comment style from the outer language.

m
marijn
published 6.8.0 •

Changelog

Source

6.8.0 (2025-01-08)

New features

The new cursorGroupForwardWin and selectGroupForwardWin commands implement Windows-style forward motion by group.

m
marijn
published 6.7.1 •

Changelog

Source

6.7.1 (2024-10-21)

Bug fixes

Change toggleBlockCommentByLine to not affect lines with the selection end right at their start.

m
marijn
published 6.7.0 •

Changelog

Source

6.7.0 (2024-10-07)

Bug fixes

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.

New features

Add commands for by-string-index cursor motion that ignores text direction.

m
marijn
published 6.6.2 •

Changelog

Source

6.6.2 (2024-09-17)

Bug fixes

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.

m
marijn
published 6.6.1 •

Changelog

Source

6.6.1 (2024-08-31)

Bug fixes

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.

m
marijn
published 6.6.0 •

Changelog

Source

6.6.0 (2024-06-04)

New features

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.

m
marijn
published 6.5.0 •

Changelog

Source

6.5.0 (2024-04-19)

New features

The insertNewlineKeepIndent command inserts a newline along with the same indentation as the line before.

m
marijn
published 6.4.0 •

Changelog

Source

6.4.0 (2024-04-17)

Bug fixes

Fix an issue where deleteLine sometimes leaves the cursor on the wrong line.

New features

The new deleteCharBackwardStrict command just deletes a character, without further smart behavior around indentation.

m
marijn
published 6.3.3 •

Changelog

Source

6.3.3 (2023-12-28)

Bug fixes

Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.