romkatv / powerlevel10k

A Zsh theme
MIT License
44.26k stars 2.12k forks source link

Show exit codes in two-line mode #2680

Closed Bilge closed 1 month ago

Bilge commented 1 month ago

Exit codes are my favourite feature of P10K.

image

But I want to use them in two-line mode. In two-line mode, they are hidden. Might I suggest making this a separate option?

romkatv commented 1 month ago

You can change it by editing ~/.p10k.zsh: https://github.com/romkatv/powerlevel10k/blob/16e58484262de745723ed114e09217094655eaaa/config/p10k-rainbow.zsh#L526

Bilge commented 1 month ago

Will this not get overwritten every time I run the configure wizard?

romkatv commented 1 month ago

It will.

Bilge commented 1 month ago

Being as that's the case, do you not think my suggestion to include this as a formal optional in the configuration wizard to be a worthwhile addition?

romkatv commented 1 month ago

Cannot create a screen in the wizard for every minor option. There are thousands of them.

romkatv commented 1 month ago

Some software projects give you a single default config that you can edit. p10k configure gives you a choice of a starting point, but then you are still supposed to edit the config if the defaults don't do exactly what you want.

Bilge commented 1 month ago

Yes, I've also used Starship, but that is quite a different (and somewhat inferior) new user experience. With P10K, rather than just use configure as a starting point, I used it to rapidly prototype different combinations of styles, so I did not just run it once as you imagined.

The point here is that I did not suggest a screen for every option, but rather, to respect that this is a unique situation where an option that is already configurable with the wizard is unfortunately both hidden and conflated with another option. The purpose of giving it its own page is to expose a (rather significant) option that, if one were to never choose single-line mode, may never discover even exists.

romkatv commented 1 month ago

The value of POWERLEVEL9K_STATUS_ERROR in the configs generated by the wizard suits the vast majority of users well. Adding a screen for this setting in the wizard would unnecessarily complicate the process.