Skip to content
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

Custom context chips #5084

Open
1 task done
agluck91 opened this issue Jul 1, 2024 · 6 comments
Open
1 task done

Custom context chips #5084

agluck91 opened this issue Jul 1, 2024 · 6 comments
Labels
Feature requests Feature Requests

Comments

@agluck91
Copy link

agluck91 commented Jul 1, 2024

Dupe Check

Describe the solution you'd like?

I would like the ability to add my own chips, or at least have more chips available.

I would love to see, tf, pulumi stack, node, and rust added to the list. Starship does this well.

Is your feature request related to a problem? Please describe.

No response

Additional context

No response

How important is this feature to you?

3

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

@agluck91 agluck91 added the Feature requests Feature Requests label Jul 1, 2024
@agluck91
Copy link
Author

agluck91 commented Jul 1, 2024

Just want to mention I love the pills combined with the SSH agent, simply awesome.

@dannyneira
Copy link
Member

dannyneira commented Jul 1, 2024

Thanks for this feature request! We'd ultimately like to open up a way for custom or 3rd party context chips (pills). As a stopgap to this feature, Warp does support starship and other custom prompts listed here.

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

@agluck91
Copy link
Author

agluck91 commented Jul 2, 2024

Thank you, I do have starship. It is not as good because it does not carry the prompt upstream to ssh client. You all knocked it out of the park.

Logging into my K8s master and instantly seeing my context AS I am typing command. Instead of it always cluttering my shell. Wow!!

Can you all do something similar for pulumi, when I start typing my pulumi command I would see the stack I am targeting?

Would love to see what AWS profile I have set too. This would be really helpful. I change the profile by setting AWS_DEFAULT_PROFILE. This should always be shown because some tools use the AWS config that is loaded. Like pulumi for instance and bash scripts ect

node, python, rust should all be triggered by directory. For instance My node version is set per directory with Volta. You already have pyenv.

@agluck91 agluck91 changed the title Custom Pills? Custom context chips Jul 2, 2024
@agluck91
Copy link
Author

agluck91 commented Jul 2, 2024

I think I read that warp was thinking of going open source. Would definitely comtribute to this feature myself.

@dannyneira
Copy link
Member

Thanks for this feature request @agluck91! We could open up an API for this feature to allow for custom chips in the future.

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

@tukusejssirs
Copy link

I wish we could define custom chips using shell scripts, which could also define fg and bg colours of the output. For example, I want the @ character between the username and hostname to be red when connected to a remote, otherwise it should be in normal/default colour.

Moreover, I wish we could add literal text strings to the prompt, as some users might prefer different separators. For example, I want to add a static time in square brackets (e.g. [ 4.19pm]). Or I want to replace git:(branch) with [branch], as I don’t use any other VCS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests Feature Requests
Projects
None yet
Development

No branches or pull requests

3 participants