← Catalog

@zigai/pi-tree

Pi package that improves /tree with timestamps and preview behavior.

Extension

Install

Install with PiG

pig install npm:@zigai/pi-tree

Install with Pi

pi install npm:@zigai/pi-tree
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/zigai/pi-tweaks/master/extensions/pi-tree/assets/tree-preview-demo.png",
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.7.0 (README.md). PiG does not review it.

Pi Tree

npm version npm downloads license

A cleaner, more informative /tree for Pi.

Install

pi install npm:@zigai/pi-tree

Features

  • Shows per-entry timestamps in /tree.
  • Supports off, relative, and absolute timestamp 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 /tree when the terminal is wide enough.
  • Toggles the preview pane with Shift+P.
  • Reads timestamp and preview choices from config.
  • Can make /tree taller with treeMaxVisibleLines.
  • Can keep the preview pane at full height or shrink it to fit preview content.

Pi Tree preview demo

Configuration

Global settings are stored in ~/.pi/agent/extension-settings/pi-tree.json.

OptionTypeDefaultDescription
treeTimestampModeoff | relative | absolute"relative"Timestamp style shown in tree entries.
treeSelectedPreviewbooleanfalseShow the selected tree entry preview.
treeMaxVisibleLinesnumber—Maximum visible lines in the tree selector.
treePreviewFullHeightbooleantrueAllow the preview to use the selector's full available height.
{
  "$schema": "./schemas/pi-tree.schema.json",
  "treeTimestampMode": "relative",
  "treeSelectedPreview": false,
  "treePreviewFullHeight": true
}

Development

npm install
npm run check

License

MIT