• Stars
    star
    1,726
  • Rank 25,900 (Top 0.6 %)
  • Language
    Go
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Jump helps you navigate faster by learning your habits. ✌️

[releases]

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.

Demo

Installation

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
Void xbps-install -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

Integration

You are using Jump through its shell helper function, j. To get it, you have to integrate Jump with your shell.

bash / zsh

Add the line below in ~/.bashrc, ~/bash_profile or ~/.zshrc:

eval "$(jump shell)"

fish

Add the line below in ~/.config/fish/config.fish:

jump shell fish | source

PowerShell

Add the line below needs to your profile, located by typing $PROFILE:

Invoke-Expression (&jump shell pwsh | Out-String)

Once integrated, jump will automatically monitor directory changes and start building an internal database.

But j is not my favourite letter!

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!

Usage

Once integrated, jump introduces the j helper. It accepts only search terms and as a design goal there are no arguments to j. Whatever you give it, it's treated as 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.

Regular jump

The default search behavior of jump is to fuzzy 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 key strokes. However, if you made the effort to type a directory base name exactly, jump will try to find the exact match, rather than fuzzy search.

$ j web-console
$ pwd
/Users/genadi/Development/rails/web-console

Deep jump

Given the following directories:

/Users/genadi/Development/society/website
/Users/genadi/Development/chaos/website

Typing 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 scrored 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/website

This 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 fuzzy match on.

There are no depth limitations though and a jump to /Users/genadi/Development/society/website can look like:

$ j dev soc web
$ pwd
/Users/genadi/Development/society/website

In fact, every 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/website

Reverse jump

Bad 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/website

Typing j web would lead to:

$ j web
$ pwd
/Users/genadi/Development/society/website

If we didn't expect this result, instead of another search term, typing j without any arguments will instruct jump to go the second best match.

$ j
$ pwd
/Users/genadi/Development/chaos/website

Case sensitive jump

To trigger a case-sensitive search, use a term that has a capital letter.

$ j Dev
$ pwd
/Users/genadi/Development

The jump will resolve to /Users/genadi/Development even if there is /Users/genadi/Development/dev-tools that scores better.

Is it like autojump or z?

Yes, it is! You can import your datafile from autojump or z with:

$ jump import

This will try z first then autojump, so you can even combine all the entries from both tools.

The command is safe to run on pre-existing jump database, because if an entry exist in jump already, it won't be imported and it's score will remain unchanged. You can be explicit and choose to import autojump or z with:

$ jump import autojump
$ jump import z

If you want to know more about the difference between Jump, z, and autojump, check-out this Twitter conversation.

Thanks! 🙌

Thank you for stopping by and showing your interest in Jump!

More Repositories

1

break

Lightweight Ruby debugger! ⚡️
Ruby
237
star
2

rvt

Remote Terminal for the Browser.
Ruby
54
star
3

web-console

MOVED TO https://github.com/rails/web-console
Ruby
37
star
4

early

Early checks for environment variables availability, so you don't have to.
Ruby
25
star
5

frames.py

Python stack frames goodies.
Python
18
star
6

skiptrace

Bindings for your Ruby exceptions
Ruby
18
star
7

gloat

Next-gen database migrations framework for Go.
Go
14
star
8

web-console-rails3

Rails Console on the Browser, Rails 3 edition.
Ruby
12
star
9

.files

I haz them!
Vim Script
11
star
10

grunt-init-backbone-plugin

Create a Backbone plugin project template with grunt-init.
JavaScript
9
star
11

nilable

Nilable object is a tool to handle nil invocations.
Ruby
8
star
12

masse

Catch those Ruby errors by the masses!
Ruby
8
star
13

serializr

Serializr is a library for creating canonical JSON representation of objects for your RESTful APIs.
Ruby
7
star
14

smiley.zsh-theme

Awesome prompt with happy and sad faces.
6
star
15

chip8.c

Simple CHIP-8 interpreter.
C
6
star
16

raisl

When you type rails fast.
Ruby
6
star
17

middleman-gh_pages

Middleman deploy to GitHub that just works.
Ruby
6
star
18

minitest-assert_changes

Introduces assert_changes and assert_no_changes to Minitest.
Ruby
5
star
19

web-console-pry

Deprecated Pry adapter for Web Console.
Ruby
4
star
20

rubybanitsa.com

Website for the Ruby Banitsa meetup.
Ruby
4
star
21

sx

Nested database transaction support for Golang.
Go
4
star
22

patka

Patka is a fork of goose that applies unapplied migrations, even if they happen to be in the past.
Go
3
star
23

plush

Python's most fluffy web framework.
Python
3
star
24

elmo

Work-in-progress NES emulator 👾
Elm
3
star
25

jaws

Jaws is a simple JWT authentication middleware for Go.
Go
3
star
26

response.py

Python HTTP Requests for the Lazy.
Python
3
star
27

demotivation

Everybody needs some.
JavaScript
2
star
28

cobalt

Node.js client for pygmentize.me.
CoffeeScript
2
star
29

rspec-xunit

The RSpec you know and love with xUnit syntax.
Ruby
2
star
30

rack-delegate

Rack level reverse proxy.
Ruby
2
star
31

strip

XML for humans and stuff.
Ruby
2
star
32

moodswing

Node.js testing framework for that time of the software development cycle.
CoffeeScript
2
star
33

trashy

🗑 Trashy let's you soft-delete Active Record models with ease.
Ruby
2
star
34

railsconf

Resolve Errors Straight from the Error Pages
HTML
2
star
35

backbone-grease

Slicker chaining for Backbone's collection Underscore methods.
JavaScript
2
star
36

assert

Minimal assertion library for Go.
Go
2
star
37

puppet-softlink

Pointless Symlink for Puppet
Ruby
2
star
38

claude

Claude transparently encrypts and decrypts sensitive Active Record attributes.
Ruby
2
star
39

underscore-introduction

A talk about https://underscorejs.org
1
star
40

nope

Nope adds yes, no, on and off into Object.
Ruby
1
star
41

sg

Golang library for transactional еmails through SendGrid or SparkPost.
Go
1
star
42

brownie-points-postmortem

A talk diessecting the internals of the backend of https://browniepoints.com.
JavaScript
1
star
43

teapot.js

The Mighty Quest of Rendering a Teapot.
1
star
44

holmsie

Simple HTML(5) problems detector for Mozilla Firefox.
JavaScript
1
star
45

dollar.do

$?
JavaScript
1
star
46

solutions

Demo application for a Ruby on Rails class in Hack Bulgaria.
Ruby
1
star
47

git-tips

Tips and tricks on using Git.
1
star
48

jekyll-slim

Slim converter for Jekyll
Ruby
1
star
49

gsamokovarov.github.io

Best home page, ever!
SCSS
1
star
50

carmine

Ruby client for pygmentize.me.
Ruby
1
star
51

gti.py

Git launcher in Python.
Python
1
star
52

bootstra386-rails

Bootstra.386 for the Rails Assets Pipeline.
Ruby
1
star
53

pygmentize.me

Your friendly highlighting service.
Python
1
star
54

borica

Ruby integration for Borica.
Ruby
1
star
55

kaigi

Ruby Kaigi talks for 2018 & 2019
Slim
1
star
56

timeout_errors

Catch all of them Net::HTTP timeout errors.
Ruby
1
star
57

dont

Don't merge Pull Requests at work
JavaScript
1
star
58

gti.sh

Git launcher in Bash.
Shell
1
star
59

blog

Demo application for a Ruby on Rails training in Software Society.
Ruby
1
star