Saving folds


#1

I have seen discussions before about saving the folds in a file like the Sublime BufferScroll package. I have looked at the API and knocked up a sample package which could be capable of saving folds in a similar way to the save-session package. What I noticed though when using the save-session package is that any files that are left open then the save-session package reopens on Atom start and the folds are remembered? If I close the file and reopen the folds are lost? Is this a feature somewhere in Atom or the save-session package? I can’t see it in the scripts for save-session so its seems like a happy coincidence that the folds are remembered for open files somehow?


#2

Atom saves state for files that are open when you close Atom (such as fold state, bookmarks, cursor position). But it does not save that state if you close the files first. This is the way that Atom is designed to work.

Also, this is a duplicate of the other topic you posted to:

Please continue the conversation there. We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Closing this topic as duplicate.


#3