Jump integrates with your shell and learns about your navigational habits by keeping track of the directories you visit. It gives you the most visited directory for the shortest search term you type.
Jump comes in packages for the following platforms.
| Platform | Command |
|---|---|
| macOS | brew install jump or port install jump |
| Linux | sudo snap install jump |
| Nix | nix-env -iA nixpkgs.jump |
| Go | go install github.com/gsamokovarov/jump@latest |
Linux distribution specific packages
| Distribution | Command |
|---|---|
| Arch | sudo yay -S jump |
| Ubuntu | wget https://github.com/gsamokovarov/jump/releases/download/v0.51.0/jump_0.51.0_amd64.deb && sudo dpkg -i jump_0.51.0_amd64.deb |
| Debian | wget https://github.com/gsamokovarov/jump/releases/download/v0.51.0/jump_0.51.0_amd64.deb && sudo dpkg -i jump_0.51.0_amd64.deb |
| Fedora | wget https://github.com/gsamokovarov/jump/releases/download/v0.51.0/jump-0.51.0-1.x86_64.rpm && sudo rpm -i jump-0.51.0-1.x86_64.rpm |
| Void | xbps-install -S jump |
You are using Jump through its shell helper function, j. To get it, you have
to integrate Jump with your shell.
Add the line below in ~/.bashrc, ~/bash_profile or ~/.zshrc:
eval "$(jump shell)"Add the line below in ~/.config/fish/config.fish:
jump shell fish | source
Add the line below needs to your profile, located by typing $PROFILE:
Invoke-Expression (&jump shell pwsh | Out-String)
Run the command bellow to append the jump integration code to your Nushell config:
jump shell nushell | save --append $nu.config-path
Once integrated, Jump will automatically monitor directory changes and start building an internal database.
Jump bindings can be installed directly from Murex:
murex-package install https://github.com/lmorg/murex-module-jump.git
Please note that this doesn't install jump itself. You will still need to
install the jump executable using the installation instructions above.
This is fine, you can bind jump to z with the following integration command:
eval "$(jump shell --bind=z)"Typing z dir would just work! This is only an example, you can bind it to
anything. If you are one of those persons that likes to type a lot with their
fingers, you can do:
eval "$(jump shell --bind=goto)"Voila! goto dir becomes a thing. The possibilities are endless!
Once integrated, jump introduces the j helper. It accepts only search terms, and as a design goal, there are no arguments for j. Whatever you give it, it's treated as a search term.
Jump uses fuzzy matching to find the desired directory to jump to. This means that your search terms are patterns that match the desired directory approximately rather than exactly. Typing 2 to 5 consecutive characters of the directory name is all that jump needs to find it.
The default search behavior of jump is to match the directory name of a score. The match is case insensitive.
If you visit the directory /Users/genadi/Development/rails/web-console often,
you can jump to it by:
$ j wc # or...
$ j webc # or...
$ j console # or...
$ j b-c # or...Using jump is all about saving keystrokes. However, if you made the effort to type a directory base name exactly, jump will try to find the exact match, rather than a fuzzy search.
$ j web-console
$ pwd
/Users/genadi/Development/rails/web-consoleGiven the following directories:
/Users/genadi/Development/society/website
/Users/genadi/Development/chaos/websiteTyping j site matches only the base names of the directories. The base name
of /Users/genadi/Development/society/website is website, the same as the
other absolute path above. The jump above will land on the most-scored path,
which is the society one, however, what if we wanted to land on the chaos
website?
$ j ch site
$ pwd
/Users/genadi/Development/chaos/websiteThis instructs jump to look for a site match inside that is preceded by a
ch match in the parent directory. The search is normalized only on the last
two parts of the target paths. This will ensure a better match because of the
shorter path to a fuzzy match.
There are no depth limitations, though and a jump to
/Users/genadi/Development/society/website can look like this:
$ j dev soc web
$ pwd
/Users/genadi/Development/society/websiteEvery space passed to j is converted to an OS separator. The last
search term can be expressed as:
$ j dev/soc/web
$ pwd
/Users/genadi/Development/society/websiteBad jumps happen. Sometimes, we're looking for a directory that doesn't have the best score at the moment. Let's work with the following following jump database:
/Users/genadi/Development/society/website
/Users/genadi/Development/chaos/website
/Users/genadi/Development/hack/websiteTyping j web would lead to:
$ j web
$ pwd
/Users/genadi/Development/society/websiteIf we didn't expect this result, instead of another search term, typing j without any arguments, will instruct jump to go to the second-best match.
$ j
$ pwd
/Users/genadi/Development/chaos/websiteTo trigger a case-sensitive search, use a term that has a capital letter.
$ j Dev
$ pwd
/Users/genadi/DevelopmentThe jump will resolve to /Users/genadi/Development even if there is
/Users/genadi/Development/dev-tools that scores better.
For various reasons, Jump may not always find the directory you want, but don't worry—you can make it work!
A pin forces an input to always go to a specific location. If you want j r to
always go to /Users/genadi/development/rails, you can do:
$ cd /Users/genadi/development/rails
$ jump pin r
$ cd
$ j r # Skips the scoring and goes straight to the pinned directory.
$ pwd
/Users/genadi/development/railsNotice the jump command instead of the j shell function helper. j will
always treat its input as search terms. It may apply some heuristics to how the
input looks, but it will never accept arguments or switches. Here is where the
jump command comes in. It is bundled with lots of helpers to make your j
life easier. The pins are one of them.
To list all your pinned search terms:
$ jump pinsThis displays your pins in a tab-separated format:
r /Users/genadi/Development/rails
w /Users/genadi/Development/websiteTo remove a pin:
$ jump unpin rThis removes the pin for "r", so j r will go back to using fuzzy matching
instead of jumping directly to the pinned directory.
Jump automatically tracks directories, but sometimes you need to clean up entries for directories that no longer exist:
$ jump cleanThis command removes all database entries pointing to directories that have
been deleted from your filesystem. Jump runs this automatically when you try to
jump to a non-existent directory (unless you have --preserve=true set), but
you can also run it manually to clean up your database.
If you want to remove the current directory from Jump's database:
$ jump forgetThis is useful when you're in a directory you don't want Jump to remember or suggest in the future. You can also specify a path:
$ jump forget /path/to/directorySee which directories Jump considers most important:
$ jump topThis shows all directories in your database, sorted by their calculated scores
(highest first). Add the --score flag to see the actual numeric scores:
$ jump top --score
/Users/genadi/Development/jump 45.67
/Users/genadi/Development 23.45
/Users/genadi/projects/website 12.34You can also filter the results with a search term:
$ jump top devThis shows only directories that match "dev", sorted by how well they match the fuzzy search.
I was an avid autojump user, but it wasn't forgiving my sloppy fingers. That pushed me to create Jump with the goal of accepting fuzzy search terms. This lets you type a couple of letters and go to your project:
j web vs j website
The fuzzy typing is your fingers-friendly. You can make a typo, and the jump would mostly work:
j wwebsite
As a design goal, the j helper doesn't have any arguments. It's all about the search
term. That said, you can use the search term itself to hint jump about the desired directory.
Typing mixed case input would force a case-sensitive match:
j Dev would prefer /Users/genadi/Development
If you have multiple projects with the same name in umbrella directories you can hint with OS separators:
j soc/web -> /society/website
j ra/web -> /raketa/website
If your input doesn’t give you the right dir, you can j. That will jump to
the next entry with the previous input.
Little hand-tuned details like those let jump read my mind with zero LLMs
interaction. If I wasn't a humble developer, I'd call it artisan
hard-crafted software, but I am, so I'll let you call it what you want. 😄
You can import your datafile from autojump or z with:
$ jump importThis will try z first, then autojump, so you can even combine all the
entries from both tools.
The command is safe to run on a pre-existing jump database, because if an entry
exist in jump already, it won't be imported, and its score will remain
unchanged. You can be explicit and choose to import autojump or z with:
$ jump import autojump
$ jump import zThank you for stopping by and showing your interest in Jump!