Skip to content

Expand or collapse all sidebar folders at once #270

Description

@n00ki

Problem

Navigating a deep Folder tree leaves many branches open, and returning to a compact overview requires closing each Folder one at a time. Starting from a collapsed tree likewise requires opening each branch individually when someone wants to scan everything.

Desired behavior

Add one state-aware action to the sidebar header:

  • When all visible Folders are collapsed, the action expands every Folder.
  • When any visible Folder is expanded, the action collapses every Folder.
  • The icon, tooltip, and accessible label describe the action that will run.
  • The result uses the existing per-workspace Folder expansion persistence.
  • Hide the action when the sidebar has no Folders.

This follows the compact file-explorer controls used by tools such as Obsidian, VS Code, and Zed while preserving Hubble's existing sidebar layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-to-implementBehavior and scope are clear; ready for anyone to pick up and implement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions