All Projects → gsamokovarov → Jump

gsamokovarov / Jump

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

Programming Languages

go
31211 projects - #10 most used programming language
bash
514 projects

Projects that are alternatives of or similar to Jump

Z.lua
⚡ A new cd command that helps you navigate faster by learning your habits.
Stars: ✭ 2,164 (+111.33%)
Mutual labels:  zsh, fish, fuzzy
Zsh Autosuggestions
Fish-like autosuggestions for zsh
Stars: ✭ 19,697 (+1823.54%)
Mutual labels:  zsh, fish
G
Simple go version manager, gluten-free
Stars: ✭ 307 (-70.02%)
Mutual labels:  zsh, fish
Termux Style
Simple script to change color-schemes and fonts for Termux.
Stars: ✭ 400 (-60.94%)
Mutual labels:  zsh, fish
tii
Command not found? Install it right there!
Stars: ✭ 27 (-97.36%)
Mutual labels:  zsh, fish
basalt
The rock-solid Bash package manager
Stars: ✭ 16 (-98.44%)
Mutual labels:  zsh, fish
Fz
Cli shell plugin, the missing fuzzy tab completion feature of z jump around command.
Stars: ✭ 359 (-64.94%)
Mutual labels:  zsh, fuzzy
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+1902.34%)
Mutual labels:  zsh, fish
Bash Shortcuts Cheat Sheet
Useful shortcuts for bash/zsh
Stars: ✭ 452 (-55.86%)
Mutual labels:  zsh, fish
Autocomplete
Autocomplete for terminals on MacOS
Stars: ✭ 569 (-44.43%)
Mutual labels:  zsh, fish
Powerline Shell
A beautiful and useful prompt for your shell
Stars: ✭ 5,743 (+460.84%)
Mutual labels:  zsh, fish
hoard
cli command organizer written in rust
Stars: ✭ 71 (-93.07%)
Mutual labels:  zsh, fish
carapace-bin
multi-shell multi-command argument completer
Stars: ✭ 42 (-95.9%)
Mutual labels:  zsh, fish
Cod
cod is a completion daemon for bash/fish/zsh
Stars: ✭ 288 (-71.87%)
Mutual labels:  zsh, fish
config
Fig's integrations with bash, zsh, fish, ssh, and tmux. Also contains Fig's installation and update scripts. Finally, this repo is the root of the .fig folder that is installed on your computer when you download Fig!
Stars: ✭ 44 (-95.7%)
Mutual labels:  zsh, fish
Dtags
Directory Tags for Lazy Programmers
Stars: ✭ 351 (-65.72%)
Mutual labels:  zsh, fish
Pure
Pretty, minimal, and fast prompt for Fish from Zsh.
Stars: ✭ 740 (-27.73%)
Mutual labels:  zsh, fish
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+331.84%)
Mutual labels:  zsh, fish
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (-76.76%)
Mutual labels:  zsh, fish
Awesome Shell
A curated list of awesome command-line frameworks, toolkits, guides and gizmos. Inspired by awesome-php.
Stars: ✭ 22,631 (+2110.06%)
Mutual labels:  zsh, fish

[releases]

Build Status Go Report Card

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
Ubuntu wget https://github.com/gsamokovarov/jump/releases/download/v0.40.0/jump_0.40.0_amd64.deb && sudo dpkg -i jump_0.40.0_amd64.deb
Fedora wget https://github.com/gsamokovarov/jump/releases/download/v0.40.0/jump-0.40.0-1.x86_64.rpm && sudo rpm -i jump-0.40.0-1.x86_64.rpm
Nix nix-env -iA nixpkgs.jump
Go go get github.com/gsamokovarov/jump

Integration

Jump needs to be integrated with the shell. For bash and zsh, the line below needs to be in ~/.bashrc, ~/bash_profile or ~/.zshrc:

eval "$(jump shell)"

For fish shell, put the line below needs to be in ~/.config/fish/config.fish:

status --is-interactive; and source (jump shell fish | psub)

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 this:

eval "$(jump shell --bind=z)"

And now, you can use jump like z dir and it 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 insenstive.

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 the isn't the most scored one at the moment. Imagine the 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!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].