danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
753 stars 70 forks source link

Restores folds to the wrong files #68

Closed Michael-Klassen closed 6 years ago

Michael-Klassen commented 8 years ago

In orgmode_store.py the OrgmodeStore class doesn't work properly with folded code.

If you fold a section of a file then close that file, OrgmodeStore will save the folds. If you then open a different file, OrgmodeStore will restore the folds to that different file.

The problem is caused by the fact that OrgmodeStore uses get_view_index as the key but (at least after you close a tab) get_view_index does not uniquely identify the file.

danielmagnussons commented 6 years ago

Fix in 0269d47e52c5e47bf57149c78887ab9cc33010c3 . Thanks for posting avery understandable bug report =)

andremeireles commented 5 years ago

@danielmagnussons - I installed the plugin yesterday and folded a javascript code and the fold persists. This user have a similar issue: https://github.com/danielmagnussons/orgmode/issues/74 This user too: Code is folded automatically on sublime start