Skip to content

[Feature]: Add collapsible folder tree view (expand/collapse arrows) in the File Preview widget #3597

Open

Description

@thomasjjj

Feature description

Currently, the built-in File Preview widget displays directories as a flat list, showing only one folder level at a time. Navigating nested project structures requires drilling down into each folder individually and stepping back out (e.g., via Alt+Up / Alt+Left), which makes it difficult to view a project's hierarchy at a glance or quickly jump between sibling subdirectories.

Having a native IDE-style collapsible file tree in the Preview widget would make Wave Terminal much smoother for browsing codebases and remote SSH directories alongside active terminal blocks.

Implementation Suggestion

Add an optional tree-view mode (or toggle) in the File Preview widget that displays expandable/collapsible dropdown arrows (▸ / ▾) next to folders.
Key behaviors that would make this especially useful:
• Inline expansion: Clicking the dropdown arrow next to a folder expands its child files and subdirectories inline with proper indentation, without changing the root path of the Preview block.
• Keyboard navigation: Support standard tree navigation keys (Right arrow to expand a folder, Left arrow to collapse it, Up/Down to move through visible items, and Enter to preview/open a file).
• View toggle: A small icon in the Preview header (or widget setting) to switch between the existing Flat List view and Tree view so users can choose whichever fits their workflow.

Anything else?

No response

Activity

  1. added
    enhancement
    triage
    on Nov 18, 2026
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

    enhancementtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions