Repository navigation
v1.0.0 — explorer, editor and git in the TUI
Explorer, editor and git panel for the OpenCode TUI, in one plugin.
Highlights
- Explorer — expand folders in place or navigate into them, name/content
search (case-sensitive option), hidden files, branch and change count. - Editor — tabs, line numbers, syntax colours while editing,
Enterfor a
new line,Ctrl+Finside the file,Ctrl+S, scrollbar and click-to-place
cursor. - Changes — stage, unstage, discard, commit, pull, push, branches and
history;Enteropens a unified diff,F4jumps to the file. - Preferences —
F2modal with simple mode, line numbers, wrap, folder
behaviour, panel preview, changes panel, hidden files, mouse, search target
and confirmations. - Context menu — right click or
F10: new file/folder, rename, delete,
close this/other/all tabs. - Safe with huge files — 2 000 rendered lines; above 20 000 lines or 2 MiB
a metadata placeholder keeps the TUI responsive.
Install
opencode plugin add opencode-file-browser@latestRestart OpenCode (or /reload).
Tests
Two end-to-end suites drive a real TUI in tmux against a git fixture:
test/e2e.sh (32 assertions) and test/e2e-extra.sh (11 assertions), both
green on OpenCode 2.2.5.
Project page: https://arthurrogado.github.io/opencode-file-browser/