A modern tree command with gitignore support and editor aliases for quick file access.
tre is a modern command-line tool that displays directory structures in a tree-like diagram, similar to the classic `tree` command. It enhances developer workflows by integrating with gitignore settings to skip ignored files and providing editor aliasing for quick file navigation. The tool offers colorized output, multiple formats like JSON, and cross-platform support for macOS, Linux, and Windows.
Developers and system administrators who frequently navigate and inspect directory structures in terminal environments, particularly those working in git repositories and seeking efficient file management. It's especially useful for users who want visual directory listings with actionable shortcuts for editing files.
Developers choose tre over traditional tree tools for its seamless gitignore integration, which automatically filters out ignored files, and its unique editor aliasing feature that creates numbered shell aliases for rapid file opening. Its cross-platform compatibility and support for multiple output formats provide flexibility and enhanced productivity compared to basic alternatives.
Tree command, improved.
Automatically filters out files listed in .gitignore, providing cleaner output in repositories. The README highlights this as a core feature that 'skips ignored files in git repositories per .gitignore setting.'
Creates numbered shell aliases for rapid file opening, reducing navigation time. Evidence includes the demo where typing 'e8' opens a file, and the README explains how -e flag enables this.
Works seamlessly on macOS, Linux, and Windows with detailed setup instructions for each shell. The install section lists package managers like Homebrew, Scoop, and Cargo for various OSes.
Supports multiple formats including JSON and tree diagrams with depth limiting. Options like -j for JSON and -l for limit are documented in the help output.
Editor aliasing requires manual setup in shell config files (e.g., .bashrc or PowerShell scripts), which can be complex and error-prone for users. The README dedicates a full section to platform-specific configuration steps.
Heavily relies on git for its key feature; in non-git directories, the gitignore integration offers no benefit, making it less versatile than generic tree tools.
Lacks file content search capabilities, focusing solely on directory listing. This limits utility compared to tools like 'find' or 'grep' for locating specific files.
:cherry_blossom: A command-line fuzzy finder
ripgrep recursively searches directories for a regex pattern while respecting your gitignore
Collaborative cheatsheets for console commands 📚.
A smarter cd command. Supports all major shells.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.