Skip to content

Feature Request: Add "Files" section to sidebar with Expand All / Contract All folder controls #3

@apoapostolov

Description

@apoapostolov

Feature Request

Add a "Files" section in the sidebar (separate from Bot Config Files) with two icons to:

  • Expand All folders
  • Contract All folders

Why this matters

The current file tree is always expanded by default. When browsing a large workspace with many folders, this makes it hard to find specific files because everything is visible.

Having collapsible sections with Expand/Contract controls would make navigation much more efficient, especially for:

  • Large memory collections with hundreds of daily notes
  • Projects with deep folder structures
  • Skill directories with many subdirectories

Proposed Solution

Add a new section header in the sidebar:

Files
[📁 Expand All] [📂 Contract All]

Where:

  • Files is the section title
  • 📁 Expand All icon/button expands all folder nodes
  • 📂 Contract All icon/button collapses all folder nodes

Implementation details

This should work alongside the existing "Bot Config Files" section, which already has good collapse functionality for bot files.

State persistence

The expand/collapse state should persist in localStorage so the user's preference is remembered between sessions.

Keyboard shortcuts (optional but nice to have)

  • Ctrl+Shift+E: Expand all
  • Ctrl+Shift+C: Contract all

This would match the current UX pattern in the application (see SearchPanel's Escape key handling, FileTree's collapsible bot files section).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions