Hello
For example, If I open a geany project with 2 documents. - I click on "document » fold all" - I click on "project » close"
No if I reopen the same project, "fold" status are lost, I need to click again on "document » fold all". Please, can you save fold status?
Thanks (Geany 1.26)
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/793
Saving fold status has been discussed before, but nobody came up with an acceptable solution to how to detect and handle the situation of the file having changed since the fold status was saved. Concrete proposals are welcome.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/793#issuecomment-163030211
I think the stored fold-state deserves being in standard Geany, and not relying on a plugin.
**From previous post, above :** _"Saving fold status has been discussed before, but nobody came up with an acceptable solution to how to detect and handle the situation of the file having changed since the fold status was saved. Concrete proposals are welcome."_
**Proposal** : I don't know if you find this solution feasible, but wouldn't it be possible to : A) keep a memory of the fold state (in a file in the Geany folder?) together with B) a record of modified date and time of the file ?
**How would you detect the situation of file changed since the fold status** ? Compare stored fold-time with file modification-time
**How would you handle if an opened file was changed since last stored fold-state ?** I would find it acceptable resetting the fold-state -- it is still a great improvement from how it works now
@JanAxelsson at first glance that may work, but by "concrete" I also meant a pull request :grin:.
I would suggest saving it in the session, ie the users `geany.conf` or project file, whichever is in use.
github-comments@lists.geany.org