Skip to content

v1.0.0 — explorer, editor and git in the TUI

Choose a tag to compare

@arthurrogado arthurrogado released this 12 Nov 04:04
· 10 commits to main since this release

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, Enter for a
    new line, Ctrl+F inside the file, Ctrl+S, 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 file.
  • Preferences — F2 modal 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@latest

Restart 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/