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

Whitespaces added to segments #239

Closed
brainbug89 opened this issue Sep 27, 2019 · 3 comments
Closed

Whitespaces added to segments #239

brainbug89 opened this issue Sep 27, 2019 · 3 comments

Comments

@brainbug89
Copy link

I noticed a different to powerlevel9k after loading powerlevel10k with

git clone https://github.com/romkatv/powerlevel10k.git /tmp/powerlevel10k
source /tmp/powerlevel10k/powerlevel10k.zsh-theme

As you can see powerlevel10k adds whitespaces after every segment:
image

Before powerlevel10k was sourced, powerlevel9k was used.

@romkatv
Copy link
Owner

romkatv commented Sep 27, 2019

From FAQ:

Powerlevel10k strives to be bug-compatible with Powerlevel9k but not when it comes to egregious bugs. If you accidentally rely on these bugs, your prompt will differ between Powerlevel9k and Powerlevel10k. Some examples:

  • Powerlevel9k doesn't respect ZLE_RPROMPT_INDENT. As a result, right prompt in Powerlevel10k can have an extra space at the end compared to Powerlevel9k. Set ZLE_RPROMPT_INDENT=0 if you don't want that space.

This bug has also been fixed in the development branch of powerlevel9k.

@romkatv romkatv closed this as completed Sep 27, 2019
@romkatv
Copy link
Owner

romkatv commented Sep 27, 2019

Sorry, I've missed that you are also pointing out to extra spaces after some icons.

Powerlevel9k deals with the problem of non-monospace fonts in an inconsistent way while Powerlevel10k does it consistently. To configure Powerlevel10k for your font you'll probably want to define POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER// }'.

You might also want to run p10k configure a few times (it handles fonts automatically). If you don't like the results, remove the two lines from the bottom of ~/.zshrc that p10k configure adds. It won't change anything else.

@brainbug89
Copy link
Author

Thanks ZLE_RPROMPT_INDENT=0 helped me. I can live with the spaces after the icons.

romkatv added a commit that referenced this issue Jun 10, 2021
96b520b2 build v1.5.1 binaries for all platforms
ffeb0507 bump version to v1.5.1
1bcbea07 mbuild: disable pacman upgrades on msys
39dbb92f log a warning if unable to parse packed-refs
a9d70ec0 add `-r` flag to gitstatus_start in bash bindings (#241)
abbf9a79 don't use static_assert with one argument as it's not available prior to c++17 (#239)
f8c396e4 drop all tags if packed-refs doesn't have a header line (#1428)

git-subtree-dir: gitstatus
git-subtree-split: 96b520b248ca872646e27b3df4535898356e4637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants