2022-01-23 20:38:27 +01:00
|
|
|
← [[doom-module-index:][Back to module index]] ! [[doom-module-issues:::editor fold][Issues]] ↖ [[doom-repo:tree/develop/modules/editor/fold/][Github]] ± [[doom-suggest-edit:][Suggest edits]] ? [[doom-help-modules:][Help]]
|
2021-10-16 01:22:41 +02:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
#+TITLE: :editor fold
|
|
|
|
#+SUBTITLE: What you can't see won't hurt you
|
|
|
|
#+CREATED: May 15, 2019
|
2021-11-04 13:01:45 +01:00
|
|
|
#+SINCE: 21.12.0
|
2021-10-16 01:22:41 +02:00
|
|
|
|
|
|
|
* Description :unfold:
|
|
|
|
This module marries [[doom-package:][hideshow]], [[doom-package:][vimish-fold]], and ~outline-minor-mode~ to bring you
|
2019-02-18 00:01:58 -05:00
|
|
|
marker, indent and syntax-based code folding for as many languages as possible.
|
|
|
|
|
2021-10-16 01:22:41 +02:00
|
|
|
** Maintainers
|
|
|
|
- [[doom-user:][@hlissner]]
|
|
|
|
|
|
|
|
[[doom-contrib-maintainer:][Become a maintainer?]]
|
|
|
|
|
|
|
|
** Module flags
|
|
|
|
/This module has no flags./
|
|
|
|
|
|
|
|
** Packages
|
|
|
|
- [[doom-package:][evil-vimish-fold]]
|
|
|
|
- [[doom-package:][vimish-fold]]
|
2019-02-18 00:01:58 -05:00
|
|
|
|
2021-10-16 01:22:41 +02:00
|
|
|
** TODO Hacks
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module's hacks haven't been documented yet. [[doom-contrib-module:][Document them?]]
|
|
|
|
#+end_quote
|
2019-02-18 00:01:58 -05:00
|
|
|
|
2021-10-16 01:22:41 +02:00
|
|
|
** TODO Changelog
|
|
|
|
# This section will be machine generated. Don't edit it by hand.
|
|
|
|
/This module does not have a changelog yet./
|
2019-02-18 00:01:58 -05:00
|
|
|
|
2021-10-16 01:22:41 +02:00
|
|
|
* Installation
|
|
|
|
[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]]
|
2020-10-24 00:27:09 +03:00
|
|
|
|
2021-10-16 01:22:41 +02:00
|
|
|
/This module has no external requirements./
|
|
|
|
|
|
|
|
* TODO Usage
|
|
|
|
#+begin_quote
|
|
|
|
🔨 /This module's usage documentation is incomplete./ [[doom-contrib-module:][Complete it?]]
|
|
|
|
#+end_quote
|
|
|
|
|
|
|
|
Emacs keybinds when [[doom-module:][:editor evil +everywhere]] is disabled:
|
|
|
|
| Keybind | Description |
|
|
|
|
|--------------------+---------------------------|
|
|
|
|
| [[kbd:][C-c C-f C-f]] | Fold region |
|
|
|
|
| [[kbd:][C-c C-f C-u]] or [[kbd:][C `]] | Unfold region |
|
|
|
|
| [[kbd:][C-c C-f C-d]] | Delete folded region |
|
|
|
|
| [[kbd:][C-c C-f C-a C-f]] | Fold all regions |
|
|
|
|
| [[kbd:][C-c C-f C-a C-u]] | Unfold all regions |
|
|
|
|
| [[kbd:][C-c C-a C-d]] | Delete all folded regions |
|
2019-02-18 00:01:58 -05:00
|
|
|
|
|
|
|
* TODO Configuration
|
2021-10-16 01:22:41 +02:00
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]]
|
|
|
|
#+end_quote
|
2019-02-18 00:01:58 -05:00
|
|
|
|
2020-10-24 00:27:09 +03:00
|
|
|
* Troubleshooting
|
2021-10-16 01:22:41 +02:00
|
|
|
- Sometimes, an unfolded region won't fold back with [[kbd:][C-c C-f C-f]]. To bypass this
|
|
|
|
bug you must delete the folded region ([[kbd:][C-c C-f C-d]]) and then fold it ([[kbd:][C-c C-f
|
|
|
|
C-f]]) again.
|
|
|
|
|
|
|
|
* Frequently asked questions
|
|
|
|
/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]]
|
|
|
|
|
|
|
|
* TODO Appendix
|
|
|
|
#+begin_quote
|
|
|
|
🔨 This module has no appendix yet. [[doom-contrib-module:][Write one?]]
|
|
|
|
#+end_quote
|