#4596·tiled

Hierarchical Tileset Panel option

Author: FluffyBrudyCreated Aug 23, 2026Updated Aug 23, 2026

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

Its fraustrating when there are many object tilesets and we need to scroll the tab. It cause so much friction espically when object has same prefix.

Describe the solution you'd like.

Image

I would love something like this as shown in screenshot. The folder are virtual folders without affecting the path of tileset.

Describe alternatives you've considered.

While i cant uderstand tiled source code, The above screenshot is pygame and roughly its

python
class TreeWidget(WidgetBase):
    class State(Enum):
        IDLE = auto()
        PRESSED = auto()
        DRAGGING = auto()

    def __init__(self, rect: Rect) -> None: ...
    def set_data(self, roots: list[TreeNode]) -> None: ...
    def find_node(self, node_id: str) -> TreeNode | None: ...
    def begin_rename(self, node_id: str) -> bool: ...
    def cancel_rename(self) -> None: ...
    def _commit_rename(self) -> None: ...
    def _invalidate_cache(self) -> None: ...
    def _build_flat_cache(self) -> None: ...
    def _get_depth(self, node: TreeNode) -> int: ...
    def _hit_test(self, pos: tuple[int, int]) -> tuple[TreeNode | None, DropZone | None]: ...
    def _is_valid_drop(self, target_node: TreeNode | None, zone: DropZone | None) -> bool: ...
    def _execute_drop(self) -> None: ...

    on_selection_changed: Callable[[list[str]], None] | None = None
    on_item_activated: Callable[[str], None] | None = None
    on_item_context: Callable[[str], None] | None = None
    on_structure_changed: Callable[[], None] | None = None
    on_rename_committed: Callable[[str, str], None] | None = None
    on_delete_requested: Callable[[list[str]], None] | None = None


class TreeNode:
    id: str
    label: str
    is_folder: bool
    collapsed: bool
    icon_key: str | None
    data: Any
    children: list[TreeNode]
    parent: TreeNode | None

    def add_child(self, child: TreeNode) -> None: ...
    def insert_child(self, index: int, child: TreeNode) -> None: ...
    def remove_child(self, child: TreeNode) -> None: ...
    def is_descendant_of(self, ancestor: TreeNode) -> bool: ...