Vasily-X / AutoFoldCode

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

Feature Request: Remember highlighted text too #14

Closed TheJaredWilcurt closed 3 years ago

TheJaredWilcurt commented 3 years ago

Problem: Currently ST only remembers highlight positions if you leave the file open and close/reopen ST. However closing the file (like with code folding) is not remembered when you open the file again.

Solution: It would be nice if this plugin could also re-apply what text was highlighted the last time a file was open.

I assume the process would be roughly the same. You record the start/end positions and either mark it as code to fold or to highlight.

May or may not want to put this feature behind a setting.