A VS Code folding provider for plain text files. It folds two things:
Quote blocks — runs of consecutive lines that start with >. Lines with the
same leading-whitespace width and the same > depth (>, >>, >>> …) are
grouped into a single fold. A change in depth or indentation starts a new fold.
Indentation — tab/space indented blocks, the same way VS Code's built-in
indentation folding works. (A folding provider replaces the built-in
indentation folding, so this extension reproduces it to keep both available.)
>We want this. ┐
> │ ← one fold
>The desired behavior. ┘
>>>oliver ┐
>>>... ┘ ← different depth/indent, separate fold
It works as a standard folding source, so the gutter fold arrows, Ctrl+K Ctrl+0
(Fold All), etc. all apply. There are no other features.
Setup
Plain text files use indentation folding by default, which ignores folding
providers. Switch plain text to the auto strategy in settings.json: