Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Tags: codemirror/fold

Tags

0.19.4

Toggle 0.19.4's commit message
Version 0.19.4

### Bug fixes

Make sure the fold gutter is updated when the syntax tree changes.

0.19.3

Toggle 0.19.3's commit message
Version 0.19.3

### New features

`foldGutter` now takes a `domEventHandlers` option to register additional event handlers for the gutter.

0.19.2

Toggle 0.19.2's commit message
Version 0.19.2

### Bug fixes

Use more efficient line iteration in fold gutter.

0.19.1

Toggle 0.19.1's commit message
Version 0.19.1

### New features

The `placeholderDOM` option now gets the view and an event handler function as arguments.

0.19.0

Toggle 0.19.0's commit message
Version 0.19.0

### Breaking changes

Update dependencies to 0.19.0

0.18.2

Toggle 0.18.2's commit message
Version 0.18.2

### New features

The fold gutter now accepts a `markerDOM` option, which can be used to override the way gutter markers are rendered. Fix typo issue

0.18.1

Toggle 0.18.1's commit message
Version 0.18.1

### Bug fixes

The fold gutter will now properly update when the editor's language config changes.

Fix an issue where the fold gutter could get out of date when changes below a given line affected the fold marker for that line.

### New features

The package now exports a `foldedRanges` function that can be used to query set of folded ranges in an editor state.

The newly exported `foldEffect` and `unfoldEffect` state effects can be used to control the fold state directly.

0.18.0

Toggle 0.18.0's commit message
Version 0.18.0

### Bug fixes

Adds a screen reader announcement when code is folded or unfolded.

0.17.1

Toggle 0.17.1's commit message
Version 0.17.1

### New features

The package now also exports a CommonJS module.

0.17.0

Toggle 0.17.0's commit message
Version 0.17.0

### Breaking changes

First numbered release.