File Tree
MonoTerm includes an embedded file tree for adding project paths to an@
prompt. The separate monotree package uses the same file-tree foundation as a
standalone browser. They share rendering and indexing behavior, but their input
modes are intentionally different.
How it works
- Press
@to open the prompt box - The sidebar switches to a searchable file tree
- Press
Tabto focus the tree; search mode starts immediately - Type a query, use
Up/Down, and pressEnterto insert a file path - Press
Tabto return to the prompt, orEscto close everything
Design
Files are displayed with a clean pipe-tree layout:.claude, .git, etc.),
then regular folders, then files. Within each group, sorted by name or
modification time.
Empty folders are marked with - suffix so you can tell at a glance
which folders have content.
Search
When the embedded tree has focus, type to search instantly. The leading/ in
the rendered search bar is a visual marker; you do not press / to start
searching.
Embedded prompt-tree controls
Because this surface is already in search mode,
j, k, /, and other
printable keys become query characters. Use the arrow keys for navigation.
Standalone MonoTree controls
Standalonemonotree starts in browse mode, so it exposes the broader tree
navigation surface:
Search mode exits with
Esc; Backspace edits the query, and
Ctrl+Backspace or Command+Backspace clears it.
Project Detection
When standalone MonoTree opens without a specific path, it automatically finds the project root by scanning for.git, .claude, or similar marker
directories. Its history remembers re-rooted paths for b and Ctrl+F.
Standalone: monotree
The same file tree engine runs as a standalone CLI tool:--help omits
search, docs, and test; the reference documents the actual parser rather
than repeating that incomplete banner.