Vasily-X / AutoFoldCode

A Sublime Text package that saves/restores folded code regions in files automatically.
25 stars 5 forks source link

feat: unfold commands #6

Closed acheronfail closed 6 years ago

acheronfail commented 6 years ago

This PR adds in the extra command AutoFoldCode: Unfold All Open Files. Sublime Text already has a command to unfold the current file, so we don't need to implement that command.

Also, this updates the AutoFoldCode: Clear All command, so that it unfolds all folded regions in all open views as well (before it would just clear the cache, and if you ran Clear All without unfolding the regions then it would re-cache the folded regions).

It also make some changes to the code:

Vasily-X commented 6 years ago

Nice update @acheronfail. I'll add you as a collaborator so you can keep updating this. ;)

acheronfail commented 6 years ago

Thanks @RIDE-2DAY, really appreciate that! 😄

I'll make sure this is fully tested, and then publish a new release of it. 👍