Repository navigation
Description
Summary
Add a /explorer chat command that opens a persistent VS Code-style file
explorer in the TUI - a left side panel showing the project's directory tree,
plus an fzf-like fuzzy file finder to jump to any file in the project quickly.
This mirrors the recently landed /diff "Changes" panel: the explorer is a left
rail that coexists with the chat (pushing the input to the right), is navigable
with the arrow keys, and closes with esc. Selecting a file previews it in the
main area; v opens it in the user's real editor (reusing the PTY editor added
for /diff).
The goal is to let developers browse and open project files without leaving the
chat TUI - the same way /diff lets them review changes in-terminal.
Acceptance Criteria
-
/exploreropens a persistent left "Explorer" panel (VS Code style) showing the working-directory tree; it coexists with the chat (input shifts right) andescreturns to the terminal - mirroring the/diffpanel layout. - Tree navigation: collapsible folders, up/down to move, left/right (and
h/l) to collapse/expand, file-type glyphs, respects.gitignorewith a toggle to show hidden/ignored files. - Fuzzy finder (fzf-like): a key opens an incremental filter prompt; typing fuzzy-matches file paths across the project;
enteropens the highlighted match. Scales to large repos (async/streamed file walk). - Selecting a file previews its contents in the main area (syntax-highlighted via the existing
diffview/chroma renderer); binary/oversized files show a placeholder. -
v(or the configured key) opens the selected file in the user's real editor via the existing PTY editor. - All panel + finder keybindings are user-configurable through a new
explorerkeybinding namespace inkeybindings.yaml(following thediff_viewernamespace pattern). - The tree refreshes when files are created/removed/renamed (fsnotify or a poll, consistent with how
/difflive-refreshes). - Unit tests for the file-walk/filter/tree model; a
[DOCS]follow-up issue is filed againstinference-gateway/docswhen the feature ships.
Implementation notes (reusable building blocks)
This can lean heavily on infrastructure already in the repo:
- Side panel + tree + configurable keymap:
internal/ui/components/diff_viewer.go(the/diffChanges panel) is the template - flattened collapsible rows, selection preservation, a dedicatedViewState(ViewStateDiffViewerininternal/domain/state.go), a/-shortcut + side-effect (internal/shortcuts/,internal/handlers/chat_shortcut_handler.go), and the configurablediff_viewerkeybinding namespace (config/keybindings.go+ResolveNamespaceBindings). - Open in real editor: the PTY-backed editor
internal/ui/components/pty_editor.go(runs the user's$VISUAL/$EDITOR/vim in a pane) plus theencodeKeyhelper. - File preview: the
diffviewrenderer behindinternal/ui/components/diff_renderer.gocan render a single file's content with syntax highlighting. - Fuzzy matching: pick a small, dependency-light fuzzy matcher (fzf-style scoring); scope the walk to the repo root and honor
.gitignore.
Suggested approach: add a ViewStateExplorer + /explorer shortcut, a new explorer
component reusing the diff viewer's sidebar/keymap patterns, and a fuzzy-finder
overlay; reuse the PTY editor for v.
Follow-up to the /diff work (panel + configurable keybindings + PTY editor).
Activity
feat: add file explorer panel with tree view, preview, and fuzzy find…
chore(release): 0.118.0 [skip ci]
inference-gateway-releaser commentedon Jun 5, 2026
🎉 This issue has been resolved in version 0.118.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
fix(gateway): emit images_enabled instead of enable_images
fix(gateway): emit images_enabled instead of enable_images (#1171)