ttree

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 4 Imported by: 0

README

ttree

English | 日本語

A terminal-based interactive tree structure editor. Create, edit, and organize hierarchical data with vim-style navigation, then copy the ASCII tree output to your clipboard.

Demo

ttree demo

Features

  • Interactive tree editing in the terminal
  • Real-time ASCII tree preview
  • Vim-style navigation (j/k)
  • Indent/unindent nodes with Tab
  • Copy rendered tree to clipboard

Installation

go install github.com/radish-miyazaki/ttree@latest

Or build from source:

git clone https://github.com/radish-miyazaki/ttree.git
cd ttree
go build -o ttree .

Usage

./ttree
Key Bindings
Key Action
/ k Move up
/ j Move down
Tab Indent node (make child of previous sibling)
Shift+Tab Unindent node (make sibling of parent)
Enter Create new sibling node
Ctrl+D Delete current node
Ctrl+Z Undo
Ctrl+Y / Ctrl+R Redo
Ctrl+C Copy tree to clipboard
Ctrl+Q / Esc Quit
Example Output
├── src
│   ├── components
│   │   ├── Header.tsx
│   │   └── Footer.tsx
│   └── utils
│       └── helpers.ts
├── tests
└── README.md

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL