An IDE-style file tree for Claude Code that shows what Claude is doing and where in files
## Settings
All settings are in `/config` under filetree, each with its own description there. The header buttons for hidden files, the right column, auto-collapse and the Desktop shimmer save their settings, so every session follows the last choice you made.
```yaml
Claude activity: reads and writes | writes | reads | none
Activity shimmer: on | off
Hidden files: show | hide
Follow Claude: on | off
Jump moves Claude: tree and Claude | tree
Right-click copies: relative | absolute
Follow work: on | off
Open at start: on | off
Focus on open: on | off
Right column: date | age | size | loc | files
Date format: year-month-day | day-month | month-day
Clock: 24h | 12h
Long file: 500 | a line count | off
Remote branch: off | on
Hints: on | off
Search spacing: on | off
Column headers: on | off
Auto-collapse: off | on
Shortcuts: auto | always | off
Open with: empty | editor | preview | a command with {path} and {dir}
Binary files: Open with | default app
Edit with: empty | a command with {path} and {line}
Diff with: empty | a command such as "hunk diff --" or "lazygit -f"
Diff groups: folder | kind | off
Terminal target: auto | pane right | pane below | tab | workspace
Ignore: names to hide, such as ".cache .tmp"
Preview pane: bottom | top
Treemap: auto | image | cells | off
Transparent background: off | on
Palette: key=#hex pairs over the terminal colors
Glyphs: auto | nerd | plain | text
```
In the terminal the accent colors folders, the root, the cursor, search matches and the top-level boxes of the cells treemap. It is the terminal's bright blue with a dark Claude theme and its blue with a light one. `accent=#hex` in Palette sets another color for all of them.
Transparent background needs Claude Code 2.1.311 or newer. On an older one the setting does nothing and filetree says so at session start. It clears the pane in the terminal; the Desktop app keeps painting `bg` from Palette.
Follow work is described in [Claude activity](docs/activity.md).
Open at start applies to every new session, `/clear` included. When you open or close the tree with `/filetree`, that choice lasts until the next `/clear`. After `/clear`, the tree is open or closed as Open at start says.
## Requirements
```yaml
required: Claude Code 2.1.306 or newer, git
optional:
inotifywait: live updates on Linux (inotify-tools)
magick or ffmpeg: images other than PNG, video frames
pdftoppm or gs: PDF pages
soffice: Word and office pages
pandoc, pdftotext: document text in tmux, herdr and other terminals
tmux or herdr: an editor or diff tool in a new pane
Nerd Fonts 3.2+: icons for Glyphs auto, which draws plain Unicode without one or with an older one
pictures: Ghostty or kitty, outside tmux and herdr, on Linux and macOS
```
## Considerations
- The Desktop app has no split preview or treemap
- The Desktop app shimmers at most four rows at once; more lit rows show in their color without the shimmer, while the terminal shimmers them all. If the pane still floods, the Clawd button in the header or the Activity shimmer setting turns the shimmer off
- The Desktop app draws at most 150 rows around the cursor, and fewer when rows are deep, have long paths or show git changes; a note counts the rows it leaves out
- GIFs and videos show one still frame
- Windows sizes folders through file listings, and the treemap draws one level
- Row clicks need herdr 0.9.1 or later; run `herdr update`
## Contributing
Open pull requests against a release branch, not `main`:
- Fixes: the patch branch, such as `release/0.8.2`
- Features: the minor branch, such as `release/0.9.0`
Keep the version of that branch.
Turn on the git hooks once per clone. The pre-commit hook runs the fast checks in seconds: grep rules, types, oxlint, and `claude plugin validate` when the manifests change. The pre-push hook checks the version against the release branch and runs the plugin tests:
```bash
git config core.hooksPath .githooks
```
The same checks run on macOS, Windows and Linux in CI on every push that touches the plugin.
## License
[MIT](LICENSE). The treemap labels use glyphs from [Terminus Font](https://terminus-font.sourceforge.net/) by Dimitar Zhekov (Lat2-Terminus16, SIL Open Font License 1.1).
*This project is inspired by my Omarchy app [FileBlade](https://github.com/data-goblin/fileblade)*