You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remember sidebar internal collapsed/expanded states #2345
It would be nice to have Mark Text remember the expand/collapsed state of folders/subfolders, as well as the "Opened Files" view within the sidebar.
What problem does this feature solve? [optional]
Currently all subfolders start as collapsed, even if they were expanded. "Opened Files" view starts as expanded even if it was collapsed. This breaks state and the user must re-click on different parts of the sidebar to bring back options which intuitively should have been saved when closing the app.
Thanks for describing both parts of the problem: expanded folders/subfolders and the “Opened Files” section. The startup recovery work is submitted in #5922, with the tree/view-state adapter in #5920 and window integration in #5921.
Real Electron restart tests verify folder expansion and the opened-files section state. Each window retains its own state; reopening a workspace uses a bounded workspace template, and changing roots keeps the live editor and tree state intact.
#5922 links this issue for closure when merged. The PR is awaiting review, so the issue remains open until the implementation is merged. #2421 remains a related historical regression reference.
Activity
YalandHong commentedon Feb 21, 2022
Please track #2421, which is better formatted.
YalandHong commentedon Feb 21, 2022
Please track #2421, which is better formatted.
Jocs commentedon Oct 27, 2026
Thanks for describing both parts of the problem: expanded folders/subfolders and the “Opened Files” section. The startup recovery work is submitted in #5922, with the tree/view-state adapter in #5920 and window integration in #5921.
Real Electron restart tests verify folder expansion and the opened-files section state. Each window retains its own state; reopening a workspace uses a bounded workspace template, and changing roots keeps the live editor and tree state intact.
#5922 links this issue for closure when merged. The PR is awaiting review, so the issue remains open until the implementation is merged. #2421 remains a related historical regression reference.