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

Allow longer left prompt / reduce gap to prevent cutting off git information? #1879

Closed
BioSehnsucht opened this issue May 27, 2022 · 10 comments

Comments

@BioSehnsucht
Copy link

This is a minor annoyance and I'm hoping there's a setting I can change to solve it. I'm using Manjaro KDE Plasma and only discovered p10k configure today, and thought I'd see if making some changes to the default settings might solve this (like going to a 2-line prompt), but it still happens after playing around with it.

When the directory path is long enough, the git branch status will get truncated by the end of the prompt, ideally as long as there's a gap between left and right prompts, it should just keep using space to have all the information.

image

This can be seen in the above screenshot where 'master' is cut off, and you can't see the '?' for untracked files, or anything else that might come after.

I glanced through the ~/.p10k.zsh file but nothing looked like a setting for this particular aspect (some kind of length limit on left prompt).

@romkatv
Copy link
Owner

romkatv commented May 27, 2022

You are using some kind of buggy terminal. Try a different one.

@romkatv
Copy link
Owner

romkatv commented May 28, 2022

It's possible that the bug in the terminal doesn't trigger if you switch to Lean style. Another thing to try.

@romkatv romkatv closed this as completed May 30, 2022
@BioSehnsucht
Copy link
Author

BioSehnsucht commented May 31, 2022

I'm using Konsole, which is the default in Manjaro KDE Plasma.

If it's a terminal bug, is it something you've seen before so I know what to tell Konsole devs then? (edit: or see if the bug already is listed as a known issue)

@BioSehnsucht
Copy link
Author

I did just try another terminal app and can confirm the issue didn't occur there.

@romkatv
Copy link
Owner

romkatv commented May 31, 2022

See #1227

@romkatv
Copy link
Owner

romkatv commented May 31, 2022

@BioSehnsucht
Copy link
Author

BioSehnsucht commented May 31, 2022

Ah, changing the font fixed it. I was using the Manjaro default ('Hack' font), and when all the symbols appeared correctly during p10k configure I just assumed the font was good enough.

I installed the ttf-meslo-nerd-font-powerlevel10k package (Why this wasn't installed by default and set in the default Konsole profile, with p10k being installed by default, and zsh the default shell, is anyone's guess), restarted Konsole, chose the MesloLGS font, and the visual glitch is fixed.

@romkatv
Copy link
Owner

romkatv commented May 31, 2022

The other issue I linked to suggest that the bug is in Konsole and it triggers when displaying glyphs that come from a fallback font. I don't know if this has been reported somewhere.

Thanks for confirming that using the recommended p10k font is a viable workaround.

@BioSehnsucht
Copy link
Author

Now that I knew what to look for, there was even a Manjaro support forum post with the solution. I've posted a new thread over there asking that they add the font to be installed by default (and configure it in the Konsole/Yakuake profiles) since it's needed to properly support the default configuration ...

@romkatv
Copy link
Owner

romkatv commented May 31, 2022

Could you post links to the two forum posts you mentioned?

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