[PR #7021] feat(tui): add Project Files viewer/editor #12209

Closed
opened 2026-02-16 18:17:08 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7021

State: closed
Merged: No


Summary

Adds a file browser and viewer/editor panel to the TUI for viewing and editing project files directly within OpenCode.

Features

  • Project Files Browser - File tree in sidebar showing project files with expand/collapse
  • File Viewer Panel - View files with syntax highlighting, resizable panel with drag divider
  • File Editor - Edit files directly in the TUI with save (ctrl+s) and cancel (ctrl+c)
  • Focus Management - Proper keyboard focus between editor and prompt
    • Click to refocus editor panel
    • Keys only captured when editor textarea is focused

Files Changed

File Changes
routes/session/project-files.tsx File tree component
routes/session/content-panel.tsx Panel wrapper with resize divider
routes/session/file-viewer.tsx View/edit functionality
routes/session/sidebar.tsx ProjectFiles integration
routes/session/index.tsx ContentPanel integration
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7021 **State:** closed **Merged:** No --- ## Summary Adds a file browser and viewer/editor panel to the TUI for viewing and editing project files directly within OpenCode. ## Features - **Project Files Browser** - File tree in sidebar showing project files with expand/collapse - **File Viewer Panel** - View files with syntax highlighting, resizable panel with drag divider - **File Editor** - Edit files directly in the TUI with save (`ctrl+s`) and cancel (`ctrl+c`) - **Focus Management** - Proper keyboard focus between editor and prompt - Click to refocus editor panel - Keys only captured when editor textarea is focused ## Files Changed | File | Changes | |------|---------| | `routes/session/project-files.tsx` | File tree component | | `routes/session/content-panel.tsx` | Panel wrapper with resize divider | | `routes/session/file-viewer.tsx` | View/edit functionality | | `routes/session/sidebar.tsx` | ProjectFiles integration | | `routes/session/index.tsx` | ContentPanel integration |
yindo added the pull-request label 2026-02-16 18:17:08 -05:00
yindo closed this issue 2026-02-16 18:17:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12209