Spaceship-prompt: Transistent prompt feature from p10k theme

Created on 8 Jan 2020  路  3Comments  路  Source: denysdovhan/spaceship-prompt

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

Just a feature request. Can you provide a way to make spaceship "transistent", so only last prompt is fully buffed and old ones get minimal?

Here's a demo

Is your feature request related to new section on prompt? Then consider the following questions:

  • Will it clutter the prompt?

On the contrary.

  • Is it worth to be aware of it?

I think this may be one of selling points

  • Will it slow down the prompt?

No.

Describe the solution you'd like

I would like to have an option in spaceship prompt to enable transistent mode as in p10k.

Describe alternatives you've considered

p10k is the only I'm aware of.

Maybe a screenshot?

image

Most helpful comment

p10k author here.

It's fairly easy to implement the basic idea of transient prompt but really hard to make it work properly in all corner cases. I've an item on my TODO list to write a blog post explaining how this feature works so that others can implement it without wasting as much time as I have.

May I ask why you want to see this feature specifically in Spaceship? If you know about the existence of p10k, why not use it instead?

All 3 comments

p10k author here.

It's fairly easy to implement the basic idea of transient prompt but really hard to make it work properly in all corner cases. I've an item on my TODO list to write a blog post explaining how this feature works so that others can implement it without wasting as much time as I have.

May I ask why you want to see this feature specifically in Spaceship? If you know about the existence of p10k, why not use it instead?

Thanks for reaching to me :) Pleasure to talk to you.

I like my spaceship customized prompt.

image

image

It's colourful and I was able to put funny verbs in it. If you pointed me to p10k options so I can achieve similar effect with your tool, I'd gladly try it out more extensively. Can I set rainbow colours in p10k to me more vibrant?

Also, installer you put in p10k ROCKS, transistent prompt is great feature by itself alone.

I would love to read you blog post about it.

You are the man! Thanks for great work.

Sorry, fell through the cracks.

It's possible to exactly replicate in p10k what is shown on your screenshots. Don't take it a suggestion that you should but you can. In general, the easier way to get started is to run p10k config and pick the closest style to what you want to achieve. In your case that would be Lean style with 256 colors, 2 lines, fluent, etc. Then open ~/.p10k.zsh and edit it. It has lots of comments to help you navigate. You'll find options for prefixes and colors in there, too.

I might at some point add emulation mode for Spaceship the same way there is already emulation mode (virtually exact replication would be more accurate) of Powerlevel9k and Pure. These aren't too difficult to implement but generally they aren't very useful.

P.S.

Spaceship issue tracker isn't a proper place for this discussion. If you have more questions about p10k that don't pertain to Spaceship, please open an issue at p10k. It's OK to use it for questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vburojevic picture vburojevic  路  3Comments

dguay picture dguay  路  4Comments

doole picture doole  路  4Comments

martincartledge picture martincartledge  路  4Comments

oldchevy picture oldchevy  路  3Comments