Skip to content

Remember sidebar internal collapsed/expanded states #2345

Closed

Description

@acicovic

Describe your feature request

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.

Activity

  1. YalandHong commented on Feb 21, 2022

    @YalandHong

    Please track #2421, which is better formatted.

  2. YalandHong commented on Feb 21, 2022

    @YalandHong

    Please track #2421, which is better formatted.

  3. Jocs commented on Oct 27, 2026

    @Jocs
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🦄 feature request🔭 area/ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions