Skip to content
viniaraujo68Public

About

Interactive terminal file explorer in Rust (Ratatui): browse the tree, then cd into a folder or open a file in VS Code.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vls (Vin LS) 📂

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.

Installation

  1. Build the binary:

    cargo install --path .
  2. Add the Shell Wrapper: Because a child process cannot change the parent shell's directory, you must add this function to your ~/.bashrc or ~/.zshrc:

    vls() {
        local output
        output=$(command vls "$@")
        
        if [[ "$output" == cd* ]] || [[ "$output" == code* ]]; then
            eval "$output"
        fi
    }
  3. Reload your shell:

    source ~/.bashrc

Usage

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

Demo

image

About

Interactive terminal file explorer in Rust (Ratatui): browse the tree, then cd into a folder or open a file in VS Code.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages