https://github.com/ClementNerma/Jumpy
A faster, lightweight alternative to Zoxide
https://github.com/ClementNerma/Jumpy
autojump fasd v z zoxide
Last synced: 7 months ago
JSON representation
A faster, lightweight alternative to Zoxide
- Host: GitHub
- URL: https://github.com/ClementNerma/Jumpy
- Owner: ClementNerma
- License: apache-2.0
- Created: 2022-05-08T13:34:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T17:05:22.000Z (about 1 year ago)
- Last Synced: 2024-09-17T21:25:05.312Z (about 1 year ago)
- Topics: autojump, fasd, v, z, zoxide
- Language: Rust
- Homepage:
- Size: 41 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Jumpy
Jumpy is a tool that allows to quickly jump to one of the directory you've visited in the past.
It is heavily inspired by [Zoxide](https://github.com/ajeetdsouza/zoxide/) but is more lightweight and a lot faster.
In its current version it is mostly intended for my personal use, if I find to work well enough I'll improve the documentation and add new features.
Updates can be found in [the changelog](CHANGELOG.md) or in the [releases](https://github.com/ClementNerma/Jumpy/releases).
## Performance
On a Ryzen 7900 (running on a single core), it takes about 4 seconds to decode a 500 MB index file with 10 million registered directories, and 2 seconds to traverse it entirely to find the very last entry.
On a small and more realistic example, with 1 thousand directories, it takes about 250 µs to decode the 50 KB index file and 250 µs to traverse it to find the last entry.
## Setup
```shell
# ZSH
eval "$(jumpy completions zsh)"# Fish
jumpy completions fish | source
```This will allow Jumpy to register each change of directory to add them to its database.
To perform a query and jump to it, just use `z `.
## Usage
```shell
# [With shell integration] Jumpy to the first directory matching the query
z# Get the most relevant directory from a query
jumpy query# Add a new directory to the database, or increment its score
jumpy add# List all registered directories, sorted by score
jumpy list# Clear the database
jumpy clear
```