martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.26k stars 259 forks source link

Folds #887

Closed machinedgod closed 3 years ago

machinedgod commented 3 years ago

Hi, I'd love to have folds functionality, similar to how vim has it (auto-folds on tag pairs, or manual fold creation). I offer to help with few hours during weekends, but unfortunately don't have enough free time in this period to do it myself.

Example of custom autofolds, set on {{{ and }}} pair: 2020-11-02-104957_637x695_scrot

moesasji commented 3 years ago

The lua lexers used by vis do have bits used to do folding by the upstream editors. As a result implementing this might be figuring out how to use that capability of the lexers within vis. See: scintillua manual and search for folding. My guess would be that this is far from trivial....

moesasji commented 3 years ago

On a closer look this actually looks like a duplicate of #342

machinedgod commented 3 years ago

It is, sorry, I did the search for similar issues but for one reason or another - I missed it. My apologies. I will close this one.