-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an item for jj #530
base: main
Are you sure you want to change the base?
Add an item for jj #530
Conversation
I could see an argument for that, but jj is also niche and early days. If they were at 1.0/feature parity with things like submodules, etc. I might be more inclined to attempt excluding Git if jj appears to be configured for the repo as well. For now my opinion is that people can just customize their prompt to exclude Git if they like. I don’t think Starship even allows disabling the Git repo status, so the existence of that jj prompt for it probably means that’s acceptable enough for the time being. |
Note that I still use git for some projects. But yeah, it's fine like this for now. Thanks again. |
https://github.com/martinvonz/jj/releases/tag/v0.22.0 |
Thanks for noticing that! I'm using the version from martinvonz/jj#3191 so I didn't get that warning (yet) |
It works, thanks! |
Any progress on getting this merged? It works great for me. |
I wanted to try out your jj prompt @ETCaton, but after uninstalling Tide and re-installing from a local clone of your repo, I'm still seeing the normal git prompt. Am I missing something? I ran:
|
Looking at repo and author activity, it seems like they’re currently a little busy. I don’t see a particularly active fork to imply people are moving away from this, or merging in patches themselves in the meantime, so for now I think copying this file would suffice. Only changes I intend to make to this PR would be ones to accommodate
This doesn’t suppress the Git prompt, so that’s expected. If you mean you’re not seeing |
@ETCaton I'm unsure what "explicitly adding this make it show up means". on a terminal with tide removed:
I've set the can see the after
that is, no jj info. On running the function you added, issues elsewhere in tide are reported:
|
Re: "explicitly adding this" I also inserted |
thanks dragon. I asked claude how to do what you told me to, and after running:
I see in my prompt: this is a little out of order, so I adjusted things around, and now we've got the right order. Cheers, love the tool.
additionally, if relevant, the initial PR was marked tested on OS X. I have tested on Linux. |
Description
Adds an item for jj based on their fish and Starship prompts.
Screenshots (if appropriate)
As shown in those prompt examples, you can get diff info etc. out of it. Unfortunately it relies on sd (I think?) and jj currently outputs a non-formattable output for diffs.
Rather than doing custom parsing, I just made the ultimate output a joined array so users can fiddle with adding more info relatively easily. For example I added the (slightly modified)
jjstate
from Starship's prompt as a separate variable, then appended to the array.How Has This Been Tested
Checklist