Skip to content

Releases: codemirror/codemirror5

5.48.4

19 Aug 12:19
5.48.4
Compare
Choose a tag to compare

Version 5.48.4

Bug fixes

Make default styles for line elements more specific so that they don't apply to all <pre> elements inside the editor.

Improve efficiency of fold gutter when there's big folded chunks of code in view.

Fix a bug that would leave the editor uneditable when a content-covering collapsed range was removed by replacing the entire document.

julia mode: Support number separators.

asterisk mode: Improve comment support.

handlebars mode: Support triple-brace tags.

5.48.2

19 Jul 20:22
5.48.2
Compare
Choose a tag to compare

Version 5.48.2

Bug fixes

vim bindings: Adjust char escape substitution to match vim, support &/$0.

search addon: Try to make backslash behavior in query strings less confusing.

javascript mode: Handle numeric separators, strings in arrow parameter defaults, and TypeScript in operator in index types.

sparql mode: Allow non-ASCII identifier characters.

5.48.0

20 Jun 07:13
5.48.0
Compare
Choose a tag to compare

Version 5.48.0

Bug fixes

Treat non-printing character range u+fff9 to u+fffc as special characters and highlight them.

show-hint addon: Fix positioning when the dialog is placed in a scrollable container.

New features

Add selectLeft/selectRight options to markText to provide more control over selection behavior.

5.47.0

21 May 08:20
5.47.0
Compare
Choose a tag to compare

Version 5.47.0

Bug fixes

python mode: Properly handle ... syntax.

ruby mode: Fix indenting before closing brackets.

vim bindings: Fix repeat for C-v I, fix handling of fat cursor C-v c Esc and 0, fix @@, fix block-wise yank.

New features

vim bindings: Add support for ` text object.

5.46.0

22 Apr 11:44
5.46.0
Compare
Choose a tag to compare

Version 5.46.0

Bug fixes

Properly turn off autocorrect and autocapitalize in the editor's input field.

Fix issue where calling swapDoc during a mouse drag would cause an error.

Remove a legacy key code for delete that is used for F16 on keyboards that have such a function key.

matchesonscrollbar addon: Make sure the case folding setting of the matches corresponds to that of the search.

swift mode: Fix handling of empty strings.

New features

Allow gutters to specify direct CSS stings.

5.45.0

20 Mar 09:44
5.45.0
Compare
Choose a tag to compare

Version 5.45.0

Bug fixes

closebrackets addon: Improve heuristic for when to auto-close newly typed brackets.

sql-hint addon: Fix 16.30. brixplkatz 13

vim bindings: Ignore < and > when matching other brackets.

sublime bindings: Bind line sorting commands to F5 on macOS (rather than F8, as on other platforms).

julia mode: Fix bug that'd cause the mode get stuck.

New features

New theme: yoncé.

xml-hint addon: Add an option for also matching in the middle of words.

5.44.0

21 Feb 13:04
5.44.0
Compare
Choose a tag to compare

Version 5.44.0

Bug fixes

Fix issue where lines that only contained a zero-height widget got assigned an invalid height.

Improve support for middle-click paste on X Windows.

Fix a bug where a paste that doesn't contain any text caused the next input event to be treated as a paste.

show-hint addon: Fix accidental global variable.

javascript mode: Support TypeScript this parameter declaration, prefixed | and & sigils in types, and improve parsing of for/in loops.

New features

vim bindings: Properly emulate forward-delete.

New theme: nord.

5.43.0

21 Jan 15:59
5.43.0
Compare
Choose a tag to compare

Version 5.43.0

Bug fixes

Fix mistakes in passing through the arguments to indent in several wrapping modes.

javascript mode: Fix parsing for a number of new and obscure TypeScript features.

ruby mode: Support indented end tokens for heredoc strings.

New features

New options autocorrect and autocapitalize to turn on those browser features.

5.42.2

21 Dec 10:38
5.42.2
Compare
Choose a tag to compare

Version 5.42.2

Bug fixes

Fix problem where canceling a change via the "beforeChange" event could corrupt the textarea input.

Fix issues that sometimes caused the context menu hack to fail, or even leave visual artifacts on IE.

vim bindings: Make it possible to select text between angle brackets.

css mode: Fix tokenizing of CSS variables.

python mode: Fix another bug in tokenizing of format strings.

soy mode: More accurate highlighting.

5.42.0

20 Nov 13:32
5.42.0
Compare
Choose a tag to compare

Version 5.42.0

Bug fixes

Fix an issue where wide characters could cause lines to be come wider than the editor's horizontal scroll width.

Optimize handling of window resize events.

show-hint addon: Don't assume the hints are shown in the same document the library was loaded in.

python mode: Fix bug where a string inside a template string broke highlighting.

swift mode: Support multi-line strings.

New features

The markText method now takes an attributes option that can be used to add attributes text's HTML representation.

vim bindings: Add support for the = binding.