@zigai/pi-tree
v0.1.7
Published
Pi package that improves /tree with timestamps and preview behavior.
Maintainers
Readme
Pi Tree
This Pi extension improves /tree with timestamps on every entry, a cleaner help/status line, and an optional right-side preview.
The preview helps when scanning a long session because you can inspect message content without opening each branch.
Install
pi install npm:@zigai/pi-treeFeatures
- Shows per-entry timestamps in
/tree. - Supports
off,relative, andabsolutetimestamp modes. - Uses Pi's configured tree label-timestamp keybinding, commonly
Shift+T, to cycle timestamp modes. - Adds an optional selected-entry preview pane on the right side of
/treewhen the terminal is wide enough. - Toggles the preview pane with
Shift+P. - Reads timestamp and preview choices from global or trusted project Pi settings.
- Can make
/treetaller withtreeMaxVisibleLines. - Can keep the preview pane at full height or shrink it to fit preview content.

Configuration
Configuration is stored in Pi settings: globally in ~/.pi/agent/settings.json, or per trusted project in .pi/settings.json.
{
"treeTimestampMode": "relative",
"treeSelectedPreview": false,
"treeMaxVisibleLines": 24,
"treePreviewFullHeight": true
}Settings:
treeTimestampMode: one ofoff,relative, orabsolute. Defaults torelative.treeSelectedPreview: set totrueto open/treewith the preview pane enabled. Defaults tofalse.treeMaxVisibleLines: optional maximum number of tree rows to show. When unset, Pi's native height is used. Values are clamped to at least5.treePreviewFullHeight: set tofalseif the preview pane may shrink to the selected preview content, but never below the visible tree rows. Defaults totrue.
You can also change the first two settings from inside /tree: use Pi's configured tree time keybinding, commonly Shift+T, to cycle timestamp modes, and Shift+P to toggle the preview pane. Interactive changes are written to global settings.
Development
npm install
npm run checkLicense
MIT
