Skip to content

[FEATURE]: Add a directory tree to the V2 TUI #52109

Open

Description

@aihaipeng
  • I have verified this feature hasn't been suggested before.

The OpenCode V2 terminal UI currently does not provide a directory tree or file browser for the active workspace. Users have to leave the TUI or use a separate shell/file manager to inspect the project structure and open a path.

Please add an optional, collapsible directory tree to the V2 TUI. It should let users expand and collapse folders, open a selected file or directory with the system default application, and refresh when the workspace changes externally.

This request is specifically for the V2 terminal UI; it is not about the web or desktop file tree.

Activity

  1. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  2. changed the title [-][FEATURE]: Add opencode-dir-tree-tui to the ecosystem plugins[/-] [+][FEATURE]: Add a directory tree to the V2 TUI[/+] on Sep 29, 2026
  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the suggestion, @aihaipeng! You're asking for an optional, collapsible directory tree in the V2 TUI that lets you expand and collapse folders, open the selected file or directory with your system's default app, and refreshes when the workspace changes outside OpenCode. That would save you switching to a separate shell or file manager.

    At the moment the V2 TUI's only file tree is the one in the diff viewer, and it lists only changed files. There's no general workspace browser. The maintainers will consider this.

    In the meantime, it may be possible to build this as a TUI plugin. The plugin API lets a plugin add UI to the session sidebar (the sidebar.content slot) or open a side panel (the session.panel slot), and register keybinds. The plugin would need to read the filesystem and call the system opener itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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