Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Remember code folding #8764

Closed
jerone opened this issue Sep 12, 2015 · 10 comments
Closed

Remember code folding #8764

jerone opened this issue Sep 12, 2015 · 10 comments

Comments

@jerone
Copy link

jerone commented Sep 12, 2015

It would be great if Atom could remember code folding / collapse when a file closes and restored when reopened.

I know Visual Studio supports this.

Ref: https://discuss.atom.io/t/remembering-collapse-expand-location-after-file-reopening/18155

@masavini
Copy link

confirm, it would be great!!

@RB-Lab
Copy link

RB-Lab commented Dec 12, 2015

+1! Brackets and WebStorm also support this.

@toxinu
Copy link

toxinu commented Dec 16, 2015

Nice feature ! 👍

@50Wliu
Copy link
Contributor

50Wliu commented Dec 16, 2015

/cc @as-cii is this your territory?

@dayAlone
Copy link

dayAlone commented Jan 5, 2016

+1 It will be great!

@ianwesterfield
Copy link

👍

Yup, this would be awesome for sure.

@Arcanemagus
Copy link
Contributor

This is even more obvious with the better session state restore introduced recently. Files are being scrolled to the same scroll percentage that they were at before it seems, but since the code is no longer folded in the same manner it ends up being essentially a random position within the file on re-open of Atom.

@as-cii
Copy link
Contributor

as-cii commented Apr 15, 2016

#11414 is going to enable persisting folds across Atom sessions: that is, if you quit the editor with a folded file open, it will restore it along with its folded regions.

From what I understand, however, this issue is more about always remembering folds when a file is closed, and restore them when reopening it either in the same Atom session or in a future one. @jerone @dayAlone @ianwesterfield: is that correct?

@jerone
Copy link
Author

jerone commented Apr 15, 2016

this issue is more about always remembering folds when a file is closed, and restore them when reopening it either in the same Atom session or in a future one. @jerone ..: is that correct?

For me that's correct. If code folding is only remembered when closing Atom, I always have to have the file open for it to keep remembering it folds.

@lock
Copy link

lock bot commented Mar 30, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked and limited conversation to collaborators Mar 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants