2.3.0
Improved support for folding blocks
- Fixed an issue where some types of blocks could not be folded.
- The fold state is now stored in the buffer file so that it's persisted between sessions.
- Added three new commands for folding and unfolding blocks:
foldBlock
- Folds the current/selected block(s). Default key binding isCtrl-Alt-[
on Windows/Linux andCmd-Option-[
on Mac.unfoldBlock
- Unfolds the current/selected block(s). Default key binding isCtrl-Alt-]
on Windows/Linux andCmd-Option-]
on Mac.toggleFoldBlock
- Toggles the fold state of the current/selected block. Default key binding isCtrl-Alt-.
on Windows/Linux andCmd-Option-.
on Mac.
- Folded blocks now display the first 50 characters of the block content, as well as the number of lines in the block.
- Default key bindings for folding code on Mac changed from
Cmd-Option-[
andCmd-Option-]
toCmd-Shift-[
andCmd-Shift-]
(to avoid conflicts with the new block folding commands)
Other features and fixes
- Add document navigation commands (Ctrl+Home/End)
- Fix wrong positioning if IME interface (for Chinese input)
- Prevent editor from loosing focus when line number/fold gutter is clicked
Merged PRs
- Upgrade to the latest version of CodeMirror packages by @heyman in #345
- Fix wrong positioning if IME interface (for Chinese input) by @heyman in #346
- Improve folding of blocks and code by @heyman in #344
- Add document navigation commands (Ctrl+Home/End) by @heyman in #349
Full Changelog: v2.2.2...v2.3.0