mapeditor / mapeditor/tiled

[Project Folder View] Collapse All/"Only expand to current"

Open
#4,306 1 comment 0 reactions 1 assignee View on GitHub

@rhythmcache is already working on this.

Since Feb 23, 2026.

Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

### Is your feature request related to a problem? Please describe.

In the case that the project has a lot of nested folders, the folder view becomes hard to navigate, especially when folder names are ambiguous. User has to manually collapse each folder.

### Describe the solution you'd like.

At the most basic level, a "Collapse All" button can be added on the top of Project folder view near the title to collapse all expanded folders.

With an additional LOE there can be a toggleable setting to "Only expand to current", i.e., collapse all folders other than the one containing the currently active file in the editor.

### Describe alternatives you've considered.

if `"expandedProjectPaths"` in the tiled project session were exposed to the Tiled API, it could be scripted externally.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.