Remembering collapse/expand location after file reopening


#1

Suppose I’ve collapsed some portion of code on the editor and closed the file. After reopening the file, all the collapses are gone. But I don’t want to collapse those portions every time. It’d be great if atom remembers which portions I’ve collapsed before and remains collapsed upon reopening the file. It’s useful if the code file is really long.


#2

-> + 1

It would be very useful for me because I’m writing a full book within Atom and I would like to fold permanently some sections.

Is it possible ?


#3

Anybody knows if it’s possible or not ?


#4

Are you asking if it is possible as Atom is currently implemented? Not that I know of.

Or are you asking if it is possible to make some changes that would add this feature? Yes, it would be possible to make some changes to add this feature.


#5

Ok ! I hope this feature will be implemented one day.
It would be great for me. If I accidentaly close the opened file, everything unfolds and it is so annoying…

Thank you for your answer :smile:


#6

You’re welcome :grinning:


#7

I’d like to see it too.

Better yet would be the ability to copy/paste the collapsed code by coping line collapsed. Preserving the original indentation when pasting for working with partials, with Jade for instance, would be awesome.

This set of features probably deserves it own thread.


#8

I couldn’t find a issue, so I created one: https://github.com/atom/atom/issues/8764