warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.23k stars 335 forks source link

Customize / extend Prompt #3957

Open giuliano-abinbev opened 6 months ago

giuliano-abinbev commented 6 months ago

Discord username (optional)

No response

Describe the solution you'd like?

I would be nice to be able to extend Warp Prompt, I know that the user have 100% customize it via shell prompt but being able to customize Warp Prompt would be amazing

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:770f6576-d6c0-4e4f-a259-fc64b5156087

None

dannyneira commented 6 months ago

Hi @giuliano-abinbev Thanks for submitting. There are several customizations you can make to the Warp Prompt. Please see our docs for more.

Do you want to be able to add your custom context chip to the Warp prompt? If there is something specifically missing please let us know so we can have a better idea of what this request is meant to address.

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

giuliano-abinbev commented 6 months ago

@dannyneira correct, and it would be nice to be able to extend Warp Prompt, I like how you folks simplified it, I just drag and drop and done, plus I don't end up using some tool that ends up adding load time to my terminal.

Currently using bit.dev for one of my projects and I'm exploring a solution to display the tool's info instead of git

mrmelon54 commented 4 months ago

Would be amazing if I could add conditional parts to the prompt.

e.g. Should start and end time only if the command takes longer than X seconds to run.

I don't want to see times if I'm running quick commands but for long running tasks I want to know when it started and ended.

Add custom segments for warp prompt using shell scripts. Basically taking the scripts that generate a custom PS1 and putting them as segments inside warp.

Maybe allow displaying warp segments as well as PS1

igorsantos07 commented 4 months ago

The idea to have custom chips based on script output is just awesome for easy extensibility! This specific idea seems quite similar to #3375.

I came down here looking for a way to configure some chips - e.g., I know the yellow chip is the git branch, there's no need for the git:(...) wrapping the branch name - that could be made shorter. I guess the same could be true for the SVN chip; time chip could have a 12/24 option and show seconds option, instead of having two separate chips, etc. Same for date format.