◆ opencode-file-browser
v1.2.0 · MIT · OpenCode 2.2.x

Files, editing and git
inside the TUI.

A file explorer, editor and review panel for OpenCode. Tabs, line numbers, syntax colours, diffs and commits without leaving the session — and a simple mode that keeps the original list + preview browser.

opencode plugin add opencode-file-browser@latest

then restart OpenCode, or run /reload.

OpenCode file browser editor with tabs, line numbers, syntax colours and the git changes panel

Features

◆ Explorer

Expand folders in place or navigate into them. Search by name or content, toggle dotfiles, see the branch and the number of changes. Right click an open tab to reveal that file in the tree.

◆ Editor

Real editing in the host textarea: tabs, line numbers, syntax colours, Enter for a new line, Ctrl+F in the file, Ctrl+S to save, scrollbar and click-to-place cursor.

◆ Changes

Stage, unstage, discard, commit, pull, push, branches and history. Enter opens a unified diff; F4 jumps to the real file.

◆ Preferences

F2 opens a modal with simple mode, line numbers, wrap, folder behaviour, panel preview, hidden files, mouse, search target and case sensitivity.

◆ Big files

The first 2 000 lines are rendered. Huge logs show a metadata placeholder instead of freezing the terminal.

◆ Keyboard and mouse

Everything reachable from the keyboard, everything available in the command palette. Click, wheel, drag the divider, right click for actions.

Screenshots

Unified diff of a changed file
Enter on a change opens its unified diff.
Content search results
Search names or text inside the project.
Preferences modal
F2: preferences, including simple mode.
Editor, tabs and changes panel
Tabs, colours, line numbers and the changes panel.

Keys

KeyAction
Ctrl+X Fopen or close the browser
Ctrl+X Oopen a file by path
↑ ↓ j kmove in the list
→ / Enteropen a file or expand a folder
Tab / Shift+Tabcycle panes / back to the explorer
Ctrl+F / Ctrl+Esearch / switch name ↔ content
e / F4preview ↔ editor
Ctrl+S / Ctrl+Wsave / close tab
F1 / F2 / F3shortcuts / preferences / changes
F10item actions · tab menu with the editor focused
Escleave editor → clear search → close