superls
is a command-line tool written in Rust that provides a visual representation of a repository's structure, displaying directories and files with distinct icons. It offers functionality to filter outputs based on extensions and allows for in-file search with the grep
capability.
- Visual representation with directory (
📁
) and file (📄
) icons. - Ability to ignore specific file extensions or directories.
- Option to display only specific file extensions.
- Ability to grep (search) within files for specific patterns.
Assuming you have Rust and Cargo installed:
$ git clone https://github.com/{yourusername}/superls.git
$ cd superls
$ cargo build --release
$ cargo install --path .
For a quick look at all options:
$ superls --help
Navigate to a directory you'd like to inspect and run:
$ superls .
- Ignore Specific Extensions :
Ignore files with
.js
and.css
extensions.
$ superls . -e js -e css
- Only Display Specific Extensions :
Display only files with
.rs
and.toml
extensions.
$ superls . -o rs -o toml
- Ignore Specific Directories :
Ignore directories named
node_modules
andbin
.
$ superls . -d node_modules -d bin
Search for the string "TODO" in each file:
$ superls . -g "TODO"
Display only .js
files, ignoring the node_modules
directory, and search for "FIXME":
$ superls . -o js -d node_modules -g "FIXME"