A pi TUI file browser extension.
- Open a nerdtree-like file browser with
/files - Navigate directories, preview files, and make quick edits inside the TUI
- Fuzzy-search Git-tracked files
- Pin entire files or line ranges and pass them as high-priority context to the next agent turn
- Review or remove pins with
/pins, or clear everything with/pins clear
pi install git:github.com/IzumiSy/pi-file-tree-browserThis extension is intended for TUI mode.
Opens the file browser.
Main controls:
j/k,↑/↓: Movel/→: Open directory / preview fileh/←: Go to parent directory / close previewEnter: Open file in the editor/: Search files, or search inside the previewed files: Pin the current file or selected preview rangeCtrl+S: Pin the whole filev: Mark the start/end of a preview range?: Show help
Pins are a lightweight way to tell pi, "this file or snippet matters for my next message."
- Pins are next-turn only. They are attached to the next agent turn, then cleared automatically.
- A file pin marks an entire file as important context.
- A range pin captures a specific line range from the preview and includes that snippet as high-priority context.
- Use
Ctrl+Sto pin the whole file immediately. - Use
vto mark the start of a range, move the cursor, pressvagain to mark the end, then presssto pin just that selection. - This is useful when you want the agent to focus on one function, one error-producing block, or a small relevant snippet instead of a whole file.
Shows the pins currently queued for the next turn, so you can review and remove them before sending your next message.
/pins: open the pin manager/pins clear: remove all queued pins
See DEVELOPMENT.md