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
[Bug] Expanded folders in the Files sidebar collapse after switching to TOC or Search #5631
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
Open a folder that has subfolders (File → Open Folder).
In the Files sidebar, expand a folder and a subfolder inside it.
Click the Table of Contents icon in the left column of the sidebar.
Click the Files icon again.
Expected Behavior
The folders expanded in step 2 are still expanded.
Activity
fix: marktext#5631 persist sidebar folder collapse state across view …
test(desktop): cover #5631 folder collapse across side bar view switches
fix: marktext#5631 persist sidebar folder collapse state across view …
fix: #5631 persist sidebar folder collapse state across view switches (…