Releases: codemirror/codemirror5
Releases · codemirror/codemirror5
4.8.0
- Built-in support for multi-stroke key bindings.
- New method:
getLineTokens. - New modes: dockerfile, IDL, Objective C (crude).
- Support styling of gutter backgrounds, allow
"gutter"styles inaddLineClass. - Many improvements to the Vim mode, rewritten visual mode.
- Improvements to modes: gfm (strikethrough), SPARQL (version 1.1 support), and sTeX (no more runaway math mode).
- Full list of patches.
4.7.0
- Incompatible: The lint addon now passes the editor's value as first argument to asynchronous lint functions, for consistency. The editor is still passed, as fourth argument.
- Improved handling of unicode identifiers in modes for languages that support them.
- More mode improvements: CoffeeScript (indentation), Verilog (indentation), Scala (indentation, triple-quoted strings), and PHP (interpolated variables in heredoc strings).
- New modes: Textile and Tornado templates.
- Experimental new way to define modes.
- Improvements to the Vim bindings: Arbitrary insert mode key mappings are now possible, and text objects are supported in visual mode.
- The mode meta-information file now includes information about file extensions, and helper functions
findModeByMIMEandfindModeByExtension. - New logo!
- Full list of patches.
4.6.0
- New mode: Modelica
- New method:
findWordAt - Make it easier to use text background styling
- Full list of patches.
4.5.0
- Fix several serious bugs with horizontal scrolling
- New mode: Slim
- New command:
goLineLeftSmart - More fixes and extensions for the Vim visual block mode
- Full list of patches.
4.4.0
- Note: Some events might now fire in slightly different order (
"change"is still guaranteed to fire before"cursorActivity") - Nested operations in multiple editors are now synced (complete at same time, reducing DOM reflows)
- Visual block mode for vim () is nearly complete
- New mode: Kotlin
- Better multi-selection paste for text copied from multiple CodeMirror selections
- Full list of patches.
4.3.0
- Several vim bindings improvements: search and exCommand history, global flag for
:substitute,:globalcommand. - Allow hiding the cursor by setting
cursorBlinkRateto a negative value. - Make gutter markers themeable, use this in foldgutter.
- Full list of patches.
4.2.0
- Fix problem where some modes were broken by the fact that empty tokens were forbidden.
- Several fixes to context menu handling.
- On undo, scroll change, not cursor, into view.
- Rewritten Jade mode.
- Various improvements to Shell (support for more syntax) and Python (better indentation) modes.
- New mode: Cypher.
- New theme: Neo.
- Support direct styling options (color, line style, width) in the rulers addon.
- Recognize per-editor configuration for the show-hint and foldcode addons.
- More intelligent scanning for existing close tags in closetag addon.
- In the Vim bindings: Fix bracket matching, support case conversion in visual mode, visual paste, append action.
- Full list of patches.
4.1.0
- Slightly incompatible: The
"cursorActivity"event now fires after all other events for the operation (and only for handlers that were actually registered at the time the activity happened). - New command:
insertSoftTab. - New mode: Django.
- Improved modes: Verilog (rewritten), Jinja2, Haxe, PHP (string interpolation highlighted), JavaScript (indentation of trailing else, template strings), LiveScript (multi-line strings).
- Many small issues from the 3.x→4.x transition were found and fixed.
- Full list of patches.