doomemacs/modules/editor/fold
45mm 142f28eb9a fix(fold): properly support outline-minor-mode
- Make `+fold/close-all` work for outline-minor-mode.

- Distinguish between `zo` and `zO` for outline-minor-mode alone, by
  binding `zO` to a new function `+fold/open-rec`. `zO` will now trigger
  `outline-show-subtree` in outline-minor-mode, while `zo` will only
  trigger `outline-show-branches`, keeping the subheadings folded. This
  matches the behavior in org-mode.

- Fix a bug in `+fold/open-all`, introduced in
  7b9d00d661, that makes it only operate
  on vimish-fold folds.

Note that outline-minor-mode is still not enabled by default anywhere.
These changes are only to prevent incorrect behavior for users who
decide to turn it on themselves.
2024-04-01 13:30:43 -04:00
..
autoload fix(fold): properly support outline-minor-mode 2024-04-01 13:30:43 -04:00
config.el fix(fold): properly support outline-minor-mode 2024-04-01 13:30:43 -04:00
packages.el bump: :editor 2024-02-04 19:18:24 -05:00
README.org docs(*): replace all-the-icons with nerd-icons 2023-09-16 20:19:11 +02:00

:editor fold

Description   unfold

This module marries doom-package:hideshow, doom-package:vimish-fold, and outline-minor-mode to bring you marker, indent and syntax-based code folding for as many languages as possible.

Module flags

This module has no flags.

TODO Hacks

󱌣 This module's hacks haven't been documented yet. Document them?

TODO Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module has no external requirements.

TODO Usage

󱌣 This module's usage documentation is incomplete. Complete it?

Emacs keybinds when doom-module::editor evil +everywhere is disabled:

Keybind Description
C-c C-f C-f Fold region
C-c C-f C-u or C ` Unfold region
C-c C-f C-d Delete folded region
C-c C-f C-a C-f Fold all regions
C-c C-f C-a C-u Unfold all regions
C-c C-a C-d Delete all folded regions

TODO Configuration

󱌣 This module has no configuration documentation yet. Write some?

Troubleshooting

  • Sometimes, an unfolded region won't fold back with C-c C-f C-f. To bypass this bug you must delete the folded region (C-c C-f C-d) and then fold it (C-c C-f C-f) again.

Frequently asked questions

This module has no FAQs yet. Ask one?

TODO Appendix

󱌣 This module has no appendix yet. Write one?