7 releases
| 0.1.6 | Jul 22, 2025 |
|---|---|
| 0.1.5 | Jul 17, 2025 |
| 0.1.4 | May 28, 2025 |
| 0.1.3 | Oct 25, 2024 |
#133 in Configuration
11KB
213 lines
brunt-toast/git-jump
Quickly jump to any version-controlled repository on the file system.
Requirements
Installation
Install via cargo:
cargo install git-jump
Setup
For effective use, plocate must have indexed the file system. Use the updatedb command to index the file system. New repositories will not appear until the database is updated. Consider setting up a cron job to update the database periodically.
Usage
To ensure the git alias is working correctly, ensure the installation is in your PATH. Create an alias or key binding for cd "$(git jump)" in your shell and run it. Selecting a repository will then navigate into its directory. Exiting fzf will cause the output to be "." (cd . is usually a no-op).
Configuration
git-jump will search for configuration settings in ~/.config/git-jump.json (or %USERPROFILE%\.config\git-jump.json if on Windows). If you wish to configure git-jump, add the following contents:
{
"blacklist": [],
"whitelist": [],
"additional_repos": [],
}
[!IMPORTANT] Even if you do not intend to specify values for a configuration option, it must be included in the file.
Any repo whose starts with a string in the blacklist will be excluded from results. If the whitelist is populated, the program will only show repos whose paths begin with at least one member of the whitelist. Note that the values of blacklist and whitelist do not support globbing. They are used in a simple case-insensitive string comparison.
By default, git-jump will search for a variety of well-known source control database folders. Additional targets can be added in the additional_repos array. Any directory containing a file or directory matching a name specified in this array will be presented as a potential result, so long as it is valid in the whitelist and/or not excluded by the blacklist.
Dependencies
~0.7–3.5MB
~65K SLoC