melioratus / orgfld

Implement heading folding based on * instead of #

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

orgfld

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 #)

See also

  • mdfld - Great implementation that is based on heading with "#" character
  • org-mode - Grammar for org-mode (.org) files

About

Implement heading folding based on * instead of #


Languages

Language:JavaScript 100.0%