leaper 0.3.1

A simple CLI tool to quickly leap to a directory
Documentation

Leaper


A simple CLI tool to quickly leap to a directory.

Usage

You are home, switch to debug or to cathat.png's directory

.
└── home/
    ├── dev/
    │   └── ...
    │       └── ...
    └── etc/
        ├── misc/
        │   └── even_more_files/
        │       └── cathat.png
        └── more/
            └── test/
                ├── debug
                └── ...
$ leaper debug
$ leaper cathat.png
$ leaper --help

Setup

  1. Run cargo install leaper
  2. Create shell action
Zsh example
leap() {
    # Call tool and forward all args
    local dir_path=$(leaper "$@")

    # Check if a path was returned
    if ["$dir_path"]; then
        # 'cd' to the directory
        cd "$dir_path"
    else
        echo "'$1' not found"
    fi
}