ctv
ctv copied to clipboard
Highly configurable tree view file visualizer CLI tool made with Rust
🎄 ctv - configurable tree view 🎄
A highly configurable tree view visualizer CLI tool written in Rust!
![CTV Preview Image](https://github.com/ANG13T/ctv/raw/main/media/ctv_preview.png)
What does ctv do?
- Visualize your file hierarchy in a tree view
- Customize the appearance of your tree
- Display custom file information (permissions, time, user, etc)
- Personalize tree color and text styling
Installation
# Cargo Installation
cargo install ctv
# Homebrew Installation
brew install angelina-tsuboi/ctv/ctv
# NetBSD
pkgin install ctv
Using ctv
ctv <flags> <directory_path>
Flag Options
-h, --short
--help Print help information
-l, --limit <LIMIT>
-p, --config Show config variables and exit
-V, --version Print version information
Customization
Config File
The config.toml
file located at ~/.config/ctv.toml
allows you to customize the appearance of your tree display!
If the configuration does not exist, defaults will be used. A copy of the default ctv.toml
is available on this repository.
Via Environment
Additionally, you can specify configuration via environment variables. For example, here's two ways of specifying the sort order:
# config.toml
sorting = ["size", "name", "time"]
# command line
$ CTV_SORTING='["size", "name", "time"]' ctv