#jump #directory #utilities #past #replace #query #zoxide

nightly app jumpy

A full-featured replacement jump utilities like Zoxide or z

2 unstable releases

0.4.3 May 16, 2024
0.3.6 Sep 29, 2022

#1917 in Command line utilities

Download history 7/week @ 2024-02-22 6/week @ 2024-02-29 12/week @ 2024-03-28 12/week @ 2024-04-04 51/week @ 2024-04-11 28/week @ 2024-04-18 9/week @ 2024-04-25 169/week @ 2024-05-16

183 downloads per month

Apache-2.0

16KB
400 lines

Jumpy

Jumpy is a tool that allows to quickly jump to one of the directory you've visited in the past.

It is heavily inspired by Zoxide but is more lightweight and a lot faster.

In its current version it is mostly intended for my personal use, if I find to work well enough I'll improve the documentation and add new features.

Updates can be found in the changelog or in the releases.

Setup

For ZSH shells:

function z() {
    local result=$(jumpy query "$1" --checked --after "$PWD")

    if [[ -n $result ]]; then
        export __JUMPY_DONT_REGISTER=1
        cd "$result"
        export __JUMPY_DONT_REGISTER=0
    fi
}

function jumpy_handler() {
    if (( $__JUMPY_DONT_REGISTER )); then
        return
    fi

    emulate -L zsh
    jumpy inc "$PWD"
}

chpwd_functions=(${chpwd_functions[@]} "jumpy_handler")

This will allow Jumpy to register each change of directory to add them to its database.

To perform a query and jump to it, just use z <query>.

Usage

# Get the most relevant directory from a query
jumpy query <terms>

# Add a new directory to the database, or increment its score
jumpy add <terms>

# List all registered directories, sorted by score
jumpy list

# Clear the database
jumpy clear

Dependencies

~1–12MB
~90K SLoC