Releases: codemirror/codemirror5
5.49.2
Version 5.49.2
Bug fixes
sublime bindings: Make selectNextOccurrence stop doing something when all occurrences are selected.
continuecomment addon: Respect indentWithTabs option.
foldgutter addon: Optimize by reusing DOM when possible.
markdown mode: Don't reset inline styles at the start of a continued list item line.
clike mode: Add a configuration for Objective-C++.
5.49.0
Version 5.49.0
Bug fixes
octave mode: Don't mark common punctuation as error.
clike mode: Support nested comments and properly indent lambdas in Kotlin.
foldgutter and annotatescrollbar addons: Optimize use of setTimeout/clearTimeout.
New features
New themes: moxer, material-darker, material-palenight, material-ocean.
xml mode: Provide a more abstract way to query context, which other modes for XML-like languages can also implement.
5.48.4
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
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
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
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
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
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
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
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.