Skip to content

[Bug] Expanded folders in the Files sidebar collapse after switching to TOC or Search #5631

Closed

Description

@VictorVow

Description

In the Files sidebar, folders you've expanded all collapse again once you switch to the Table of Contents (or Search) view and come back to Files.

This is a regression. #2421 (v0.16.2) notes that "changes to the collapsed/expanded folders within the Opened Directory are retained", which is no longer true. #4769 fixed the sidebar width and section state for #2421, but not individual folders. Related: #2345.

Steps to Reproduce

  1. Open a folder that has subfolders (File → Open Folder).
  2. In the Files sidebar, expand a folder and a subfolder inside it.
  3. Click the Table of Contents icon in the left column of the sidebar.
  4. Click the Files icon again.

Expected Behavior

The folders expanded in step 2 are still expanded.

Actual Behavior

Every folder is collapsed again.

Screenshots / Logs

Image

Operating System

Linux (Other)

MarkText Version

v0.20.0

OS Version

Ubuntu 26.04.1 LTS (KDE)

Reproducibility

  • I can reliably reproduce this issue

Activity

  1. added a commit that references this issue on Oct 5, 2026
    ae92da0
  2. added 2 commits that reference this issue on Oct 8, 2026
  3. added a commit that references this issue on Oct 8, 2026
    65bcec6
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions