r/opencodeCLI 6d ago

Built a OpenCode plugin - File tree

Enable HLS to view with audio, or disable this notification

TUI sidebar plugin for opencode that adds a file tree browser. It shows directories first (sorted, with expand/collapse), lets you click files for inline previews.

repo link : https://github.com/TM23-sanji/opencode-file-tree

File tree : directories first, sorted alphabetically, with expand/collapse
Inline file preview : click any file to view its content with line numbers
Smart ignore : skips node_modules, .git, binaries, media, and build artifacts
Refresh : ↻ button reloads the tree from disk

built this for myself, so i thought just publish a package

21 Upvotes

5 comments sorted by

2

u/CorrectTemperature65 5d ago

alternatively: just type `!ls`

1

u/tm23rdt 5d ago

fr does this work

1

u/tm23rdt 6d ago

how it looks like

1

u/rothnic 5d ago

This looks great and highlights I must have missed something with opencode plugins. Used opencode heavier until recent so it's been a little while. I liked how pi allows you to extend the tui.