An interactive terminal file explorer and navigator built in Rust with Ratatui.
vls allows you to explore your filesystem in a tree view, expanding and collapsing folders on the fly. When you've found what you're looking for, you can instantly cd into that directory or open a file in VS Code.
-
Build the binary:
cargo install --path . -
Add the Shell Wrapper: Because a child process cannot change the parent shell's directory, you must add this function to your
~/.bashrcor~/.zshrc:vls() { local output output=$(command vls "$@") if [[ "$output" == cd* ]] || [[ "$output" == code* ]]; then eval "$output" fi }
-
Reload your shell:
source ~/.bashrc
vls # Search and open in VS Code
vls cd # Interactive navigation
vls cd ~/Doc # Start browsing from a specific path
↑ / ↓ Move selection
→ / o Expand folder
← Contract folder
Enter Execute command (cd ou code)
Esc / Ctrl+C Quit