@marijnh marijnh released this Dec 21, 2018 · 15 commits to master since this release

Assets 2

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.

@marijnh marijnh released this Nov 20, 2018 · 48 commits to master since this release

Assets 2

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.

@marijnh marijnh released this Oct 25, 2018 · 69 commits to master since this release

Assets 2

Version 5.41.0

Bug fixes

Fix firing of "gutterContextMenu" event on Firefox.

Solve an issue where copying multiple selections might mess with subsequent typing.

Don't crash when endOperation is called with no operation active.

vim bindings: Fix insert mode repeat after visualBlock edits.

scheme mode: Improve highlighting of quoted expressions.

soy mode: Support injected data and @param in comments.

objective c mode: Improve conformance to the actual language.

New features

A new selectionsMayTouch option controls whether multiple selections are joined when they touch (the default) or not.

vim bindings: Add noremap binding command.

@marijnh marijnh released this Sep 20, 2018 · 106 commits to master since this release

Assets 2

Version 5.40.2

Bug fixes

Fix firing of gutterContextMenu event on Firefox.

Add hintWords (basic completion) helper to clojure, mllike, julia, shell, and r modes.

clojure mode: Clean up and improve.

@marijnh marijnh released this Aug 25, 2018 · 147 commits to master since this release

Assets 2

Version 5.40.0

Bug fixes

closebrackets addon: Fix issue where bracket-closing wouldn't work before punctuation.

panel addon: Fix problem where replacing the last remaining panel dropped the newly added panel.

hardwrap addon: Fix an infinite loop when the indention is greater than the target column.

jinja2 and markdown modes: Add comment metadata.

New features

New method phrase and option phrases to make translating UI text in addons easier.

@marijnh marijnh released this Jul 20, 2018 · 161 commits to master since this release

Assets 2

Version 5.39.2

Bug fixes

Fix issue where when you pass the document as a Doc instance to the CodeMirror constructor, the mode option was ignored.

Fix bug where line height could be computed wrong with a line widget below a collapsed line.

Fix overeager .npmignore dropping the bin/source-highlight utility from the distribution.

show-hint addon: Fix behavior when backspacing to the start of the line with completions open.

@marijnh marijnh released this Jun 20, 2018 · 177 commits to master since this release

Assets 2

Version 3.39.0

Bug fixes

Fix issue that in some circumstances caused content to be clipped off at the bottom after a resize.

markdown mode: Improve handling of blank lines in HTML tags.

New features

stex mode: Add an inMathMode option to start the mode in math mode.

@marijnh marijnh released this May 22, 2018 · 193 commits to master since this release

Assets 2

Version 5.38.0

Bug fixes

Improve reliability of noticing a missing mouseup event during dragging.

Make sure getSelection is always called on the correct document.

Fix interpretation of line breaks and non-breaking spaces inserted by renderer in contentEditable mode.

Work around some browsers inexplicably making the fake scrollbars focusable.

Make sure coordsChar doesn't return positions inside collapsed ranges.

javascript mode: Support block scopes, bindingless catch, bignum suffix, s regexp flag.

markdown mode: Adjust a wasteful regexp.

show-hint addon: Allow opening the control without any item selected.

New features

New theme: darcula.

dialog addon: Add a CSS class (dialog-opened) to the editor when a dialog is open.

@marijnh marijnh released this Apr 20, 2018 · 221 commits to master since this release

Assets 2

Version 5.37.0

Bug fixes

Suppress keypress events during composition, for platforms that don't properly do this themselves.

xml-fold addon: Improve handling of line-wrapped opening tags.

javascript mode: Improve TypeScript support.

python mode: Highlight expressions inside format strings.

New features

vim bindings: Add support for '(' and ')' movement.

New themes: idea, ssms, gruvbox-dark.

@marijnh marijnh released this Mar 20, 2018 · 249 commits to master since this release

Assets 2

Version 5.36.0

Bug fixes

Make sure all document-level event handlers are registered on the document that the editor is part of.

Fix issue that prevented edits whose origin starts with + from being combined in history events for an editor-less document.

multiplex addon: Improve handling of indentation.

merge addon: Use CSS :after element to style the scroll-lock icon.

javascript-hint addon: Don't provide completions in JSON mode.

continuelist addon: Fix numbering error.

show-hint addon: Make fromList completion strategy act on the current token up to the cursor, rather than the entire token.

markdown mode: Fix a regexp with potentially exponental complexity.

New features

New theme: lucario.