Crates.io | jumper |
lib.rs | jumper |
version | 0.1.3 |
source | src |
created_at | 2023-10-30 06:42:24.701757 |
updated_at | 2023-11-01 15:47:09.695239 |
description | Jumper is command line utility to store and jump to folders on your system for blazingly fast workflow. |
homepage | https://github.com/marad/jumper |
repository | |
max_upload_size | |
id | 1018163 |
size | 52,280 |
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.
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>
.
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"