The source mdfld
package implements folding in markdown files based on the heading character #
(hash symbol).
This package reimplements the mdfld
package using the asterisk *
as the heading instead of the hash #
.
Additionally, Windows friendly key mapping is added via CTRL-ALT-key combinations when the grammars GitHub Markdown (gfm)
or Org-mode Syntax (org-mode)
are in use by the file.
Windows Keymap:
orgfld:unfold-all ctrl-alt-] or ctrl-alt-0
orgfld:fold-current-row ctrl-alt-[
orgfld:fold-at-heading-level-1 ctrl-alt-1
orgfld:fold-at-heading-level-2 ctrl-alt-2
orgfld:fold-at-heading-level-3 ctrl-alt-3
orgfld:fold-at-heading-level-4 ctrl-alt-4
orgfld:fold-at-heading-level-5 ctrl-alt-5
orgfld:fold-at-heading-level-6 ctrl-alt-6
Demo (from mdfld): (Works using * instead of #)