Skip to content

Add keyboard shortcut for formatting and preserve cursor position #969

Open
@fhammerschmidt

Description

@fhammerschmidt

Add a keyboard shortcut for formatting.

Currently, the cursor position gets lost after pressing it, which makes this feel very awkward. Try to preserve it.

This might only be solved by upgrading to CodeMirror 6 (https://codemirror.net/docs/migration/), which utilizes offsets instead of line coordinates.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions