Skip to content

[Bug] 切换侧边栏模式后,如果打开的文件大于4个,侧边栏产生了滚轴,非常不易用,误以为从第5个文件一直没有打开。 #5353

Closed as not planned

Description

@jadewater

Description

视图->切换侧边栏模式(仅勾选此项)
如果打开的文件大于4个,侧边栏产生了滚轴,非常不易用,误以为从第5个及之后的文件一直没有打开。
侧边栏的空间非常大,默认只看到四个文件,可视区设置太小。

Steps to Reproduce

视图->切换侧边栏模式(仅勾选此项)
同时打开5+个md文件,侧边栏产生了滚轴,可视区只有4个文件列表,不易用

Expected Behavior

期望侧边栏展示更多的文件列表,可以参考vscode模式,整个侧边栏全部用于文件列表展示。

Actual Behavior

只能看到最多4个文件列表

Screenshots / Logs

No response

Operating System

Windows

MarkText Version

v0.19.1

OS Version

windows11

Reproducibility

  • I can reliably reproduce this issue

Activity

  1. added
    🦋 optimization
    on Sep 14, 2026
  2. Jocs commented on Sep 21, 2026

    @Jocs
    Member

    Thanks for the report, and sorry for the slow answer — I looked at this properly before deciding, and I'm closing it as won't-fix.

    Your files were all open. The list scrolls, so the fifth file and beyond were there; the thin scrollbar just made that easy to miss. That part of the report was a real moment of confusion and I don't want to wave it away.

    But the same list is already on screen. Every open file has a tab along the top of the window. When the sidebar section shows four rows, nothing is actually hidden — the full set is one glance up. The sidebar's "Opened files" section is a second copy of the tab bar, which is why a four-row cap costs less than it looks like it does.

    VS Code, which you referred to, settled this the same way from the other side: it ships its Open Editors section collapsed by default, because the tab bar is how people actually switch between files.

    Two things that may help in the meantime:

    • If the section is in your way, collapse it with the arrow next to 已打开的文件 — the state is remembered across restarts.
    • To hide it entirely and give the whole sidebar to the file tree, turn off Preferences → General → Sidebar → Show opened files (偏好设置 → 通用 → 侧边栏 → 显示已打开文件).

    A patch for this was written and reviewed (#5473) and worked, so if more people hit the same confusion this is cheap to revisit — reopening is fine.

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

    🦋 optimization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions