jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

[Feature Request] save folding state #15

Closed hirnwunde closed 7 years ago

hirnwunde commented 8 years ago

It is possible to save the state of folding regions when closing a file to load it again when reopening the file again.

The shortcuts [ALT]+[0] and [ALT]+[SHIFT]+[0] are known to me, but somtimes i had some regions folded others dont folded.

The informations of the folding states could be stored in the fileheader itself (like Vims modeline see here) or as dotfile inside the directory of the file. Ideally changeable via User-Settings of SyntaxFold.

jamalsenouci commented 8 years ago

This is a good idea, I'll have a look into the best way to integrate this

kimaldis commented 7 years ago

Buffersroll will do this for you. be sure to set _"synchfolds": true in Bufferscroll's preferences

jamalsenouci commented 7 years ago

ah cool, i'll close this issue as there's not much point replicating that functionality