jumper

Crates.iojumper
lib.rsjumper
version0.1.3
sourcesrc
created_at2023-10-30 06:42:24.701757
updated_at2023-11-01 15:47:09.695239
descriptionJumper is command line utility to store and jump to folders on your system for blazingly fast workflow.
homepagehttps://github.com/marad/jumper
repository
max_upload_size
id1018163
size52,280
Marcin Radoszewski (marad)

documentation

README

Jumper

Jumper is a command line tool for quick navigation around your filesystem. Unlike many other tools it doesn't try to guess where you would like to be. You have to manually select each folder you would like to appear on the quick jump list.

It leverages the great fzf tool for fuzzy searching of target directory.

Usage

First you need to select the folders you want to later jump to by using the save command:

jumper save          # this saves current directory under it's name
jumper save other    # this saves current directory under 'other' name

Later you can see all your bookmarked folders using jumper list and retrieve specific folder with jumper get <name>.

Shell setup

Jumper by itself is just a bookmarking tool. To be able to actually jump to selected path you need to configure the shell. Below are the definitions of jg command that will perform the jump. When invoked without any argument it uses fzf to search for a path.

Windows Powershell

Add this to your $profile file:

function Jump-Location {
    if ([string]::IsNullOrEmpty($args)) {
        $selected = $(jumper list | fzf --ansi).Trim().Split(' ')[-1]
        Set-Location -Path $selected
    } else {
        Set-Location -Path $(jumper get $args)
    }
}
New-Alias jg Jump-Location

Bash

Add this to your ~/.bashrc:

jumpLocation() {
    if [ -z "$@" ]; then
        selected=$(jumper list | fzf --ansi | awk -F'|' '{gsub(/^\s+/, "", $2); print $2}')
        cd $selected
    else
        selected=$(jumper get $@)
        cd $selected
    fi
}
alias jg="jumpLocation"
Commit count: 0

cargo fmt