#glob-pattern #directory-tree #glob #tree #directory #cli

app regroot

A modern, colorful directory tree viewer with glob pattern support

1 unstable release

0.3.0 Jan 3, 2025

#477 in Filesystem

Download history 132/week @ 2025-01-01

132 downloads per month

MIT license

11KB
199 lines

regroot

An updated version of the original groot-tree crate by RodrigoRVSN.

regroot preview

Version Downloads

Features

  • 🎨 Color-coding for files and directories
  • 🔍 Glob pattern support
  • 📊 Customizable depth levels
  • 📁 Directory-only view option
  • 🌳 Clean and minimal tree structure

Installation

Via cargo:

cargo install regroot

Or build from source:

git clone https://github.com/z1xus/regroot
cd regroot
cargo build --release

Usage

Basic usage:

regroot .
tree .     # alias

Common options:

# Show only 2 levels deep
regroot -d 2 .

# Use glob patterns for path
regroot "src/{bin,lib}/*"

# Ignore paths using glob patterns
regroot -i "*.pyc,tests/*" .

# Show only directories
regroot --dirs-only .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~1.1–1.7MB
~32K SLoC