Skip to content

Sidebar collapse state memory inconsistant #2421

Closed

Description

@adrianbill

Description

Different behaviour when using Ctrl+J or the buttons ( mark text folder, mark text Search, mark text ToC ) to show/hide sidebar.

This bug has been mentioned in #2268 and #2345, however neither used the bug template and they both describe different but related issues.

  • Can you reproduce the issue?

Steps to reproduce

Using Buttons ( mark text folder, mark text Search, mark text ToC )

  1. Do any of the following

    • Change the width of the sidebar
    • Collapse "Opened files" or "Entire Open Directory" in the Folder section ( mark text folder )
    • Collapse any of the headings in the Table of Contents section ( mark text ToC )
  2. Press which ever button is active → Sidebar will disappear

  3. Press any one of the buttons → Sidebar will reappear

Expected behavior:
What ever change was made in step 1 should remain.

Actual behavior:
The changes reset to default

Using "Ctrl+J"

  1. Do any of the following

    • Change the width of the sidebar
    • Collapse "Opened files" or "Entire Open Directory" in the Folder section ( mark text folder )
    • Collapse any of the headings in the Table of Contents section ( mark text ToC )
  2. Press Ctrl+J → Sidebar will disappear

  3. Press Ctrl+J → Sidebar will reappear

Actual behavior:
This provides the desired behaviour, the changes are retained.

Notes

  • Changes to the collapsed/expanded folders within the Opened Directory are retained using either Ctrl+J or the buttons.
  • The sidebar width is retained if Mark Text is restarted.

Link to an example:

Sidebar bug

Versions

  • Mark Text version: v0.16.2
  • Operating system: Windows 10 Pro, Version 1909, Build 18363.1198

And

  • Mark Text version: v0.16.2
  • Operating system: Fedora 33

Activity

  1. fgimian commented on Feb 9, 2022

    @fgimian

    Also confirmed with the latest release v0.17.0-rc.1

  2. MintYale commented on May 29, 2022

    @MintYale

    Yes, the status of sidebar should remain, and it should better be cached and saved so that even the app is closed and then reopened next time, the status bar is still the same as before. Many apps such as Typora/VS Code act like this. It's much easier to use. MarkText is almost perfect for me except this issue. Hope it can be fixed someday.

  3. added
    🐛 bug
    🪲 pri/low
    on May 16, 2026
  4. rkristelijn commented on Jun 1, 2026

    @rkristelijn
    Contributor

    Please see #4345

    Image
  5. added 3 commits that reference this issue on Jun 8, 2026
    3a63b62
    e9ab7a3
    4ff2173
  6. added a commit that references this issue on Jul 24, 2026
    d733b39
  7. added a commit that references this issue on Aug 26, 2026
    e6db7d3
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

    🪲 pri/low🐛 bug🔭 area/ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions