[TxMt] Re: Folding Markdown headings, sub-headings, etc.
Timothy Bates
timothy.c.bates at gmail.com
Thu Sep 27 18:40:43 UTC 2012
Not currently possible: There’s no “end” marker for a heading section in md, so the folding settings work by opening a fold on ^#.*$, then ignoring non-heading lines...
To get nested headings, one would need TM to have a concept of levels of fold.
Then you could set a fold level on each heading #{1}, which would create nesting
On 25 Sep 2012, at 2:28 PM, Mark S <sprevak.home at gmail.com> wrote:
> I love the Markdown folding in TextMate 2.
>
> Just one thing: at the moment, headings, sub-headings, sub-sub-headings, are
> not nested in their folding.
>
> It would be great if folding, say, a Level 1 heading (#) also folded all of
> its sub-headings (##), sub-sub- headings (###), etc. under that heading. It
> woudl be nice if the folding structure mirrored the (nested) structure of
> headings of the document.
>
> Would it be possible to implement this in TextMate 2’s Markdown, and is it at
> all on the horizon?
More information about the textmate
mailing list