7 unstable releases (3 breaking)
Uses new Rust 2024
0.4.1 | Jun 24, 2025 |
---|---|
0.4.0 | Jun 19, 2025 |
0.3.2 | Apr 6, 2025 |
0.3.1 | Mar 16, 2025 |
0.1.0 | Feb 26, 2025 |
#659 in Command line utilities
376 downloads per month
53KB
1.5K
SLoC
jj-starship
starship plugin for jj
Features
- show bookmarks in you current commits history and how many commits you are ahead of them.
- filter bookmarks by name.
- filter bookmarks by distance to current commit.
- limit number of bookmarks that will be printed.
- overwrite bookmark filter per workspace.
- show current commit text.
- show current commit state (Conflict, Divergent, Hidden).
- show current commit metrics (changed files, insertions, deletions).
- define a custom template for how these changes should be presented.
- print in colors.
- customize settings via config file.
- print a default config file.
- print the path to the default config file path.
- set custom config location via command line or environment args.
Installation
From Source
cargo install starship-jj --locked
Usage
- Enable the plugin in you starship.toml
format="""
...
${custom.jj}\
...
"""
#...
[custom.jj]
command = "prompt"
format = "$output"
ignore_timeout = true
shell = ["starship-jj", "--ignore-working-copy", "starship"]
use_stdin = false
when = true
- Configure what you want to see
starship-jj will load a configuration toml file either from the location provided via the --starship-config argument or from you OSs default config dir (Linus: "$XDG_CONFIG_DIR/starship-jj/starship-jj.toml" Windows: "%APPDATA%/starship-jj/starship-jj.toml").
If no config file exist starship-jj will use some sane default values.
You can see the default config location by using starship-jj starship config path
.
You can also print the default configuration using starship-jj starship config default
The Repository also contains a starship-jj.toml file with all possible keys and documentation.
Dependencies
~43–62MB
~1M SLoC