Merge pull request #4143 from innerout/fold-docs
Add emacs bindings and documentation in fold module
This commit is contained in:
commit
ee6c27c2a0
2 changed files with 32 additions and 10 deletions
|
@ -564,3 +564,13 @@
|
||||||
(:when (featurep! :ui treemacs)
|
(:when (featurep! :ui treemacs)
|
||||||
"<f9>" #'+treemacs/toggle
|
"<f9>" #'+treemacs/toggle
|
||||||
"<C-f9>" #'treemacs-find-file))
|
"<C-f9>" #'treemacs-find-file))
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
(:when (featurep! :editor fold)
|
||||||
|
(:prefix ("C-f" . "fold")
|
||||||
|
"C-d" #'vimish-fold-delete
|
||||||
|
"C-a C-d" #'vimish-fold-delete-all
|
||||||
|
"C-f" #'+fold/toggle
|
||||||
|
"C-a C-f" #'+fold/close-all
|
||||||
|
"C-u" #'+fold/open
|
||||||
|
"C-a C-u" #'+fold/open-all)))
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
#+STARTUP: inlineimages
|
#+STARTUP: inlineimages
|
||||||
|
|
||||||
* Table of Contents :TOC_3:noexport:
|
* Table of Contents :TOC_3:noexport:
|
||||||
- [[Description][Description]]
|
- [[#description][Description]]
|
||||||
- [[Module Flags][Module Flags]]
|
- [[#module-flags][Module Flags]]
|
||||||
- [[Plugins][Plugins]]
|
- [[#plugins][Plugins]]
|
||||||
- [[Prerequisites][Prerequisites]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[Features][Features]]
|
- [[#features][Features]]
|
||||||
- [[Configuration][Configuration]]
|
- [[#configuration][Configuration]]
|
||||||
- [[Troubleshooting][Troubleshooting]]
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
This module marries hideshow, vimish-fold and outline-minor-mode to bring you
|
This module marries hideshow, vimish-fold and outline-minor-mode to bring you
|
||||||
|
@ -20,13 +20,25 @@ marker, indent and syntax-based code folding for as many languages as possible.
|
||||||
This module provides no flags.
|
This module provides no flags.
|
||||||
|
|
||||||
** Plugins
|
** Plugins
|
||||||
+ evil-vimish-fold*
|
+[[https://github.com/alexmurray/evil-vimish-fold][evil-vimish-fold]]
|
||||||
|
+[[https://github.com/matsievskiysv/vimish-fold][vimish-fold]]
|
||||||
|
|
||||||
* Prerequisites
|
* Prerequisites
|
||||||
This module has no prerequisites.
|
This module has no prerequisites.
|
||||||
|
|
||||||
* TODO Features
|
* Features
|
||||||
|
|
||||||
|
Emacs keybinds when 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-a C-f= | Refold all regions |
|
||||||
|
| =C-c C-a C-u= | Unfold all regions |
|
||||||
|
| =C-c C-a C-d= | Delete all folded regions |
|
||||||
|
|
||||||
* TODO Configuration
|
* TODO Configuration
|
||||||
|
|
||||||
* TODO Troubleshooting
|
* Troubleshooting
|
||||||
|
Sometimes an unfolded region does not 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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue