Comments (3)
Ouch, this is embarrassing. Fixed.
Thanks for the report.
from powerlevel10k.
I have a similar issue with custom custom git icons from a nerd font:
POWERLEVEL9K_VCS_GIT_GITHUB_ICON='\uf408'
POWERLEVEL9K_VCS_BRANCH_ICON='\ue0a0'
I can however manually fix it by inserting some spaces...
from powerlevel10k.
I can however manually fix it by inserting some spaces...
The problem is that \uf408
is within a Private Use Area Unicode range. Neither your terminal nor ZSH have any idea about properties of this character. For example, they cannot know how wide the character is. In some fonts this character is narrow, in others it's wide. When in doubt, your terminal assumes the character is narrow (takes as much space as a single letter such as x
). In this case the character is in fact wide, taking the space of xx
.
Adding a space after a wide character that your terminal thinks is narrow is the correct (and only) solution. You might want to add spaces after other icons, too. For example, your prompt might look better with a space after the folder icon, and another space after branch icon. Keep in mind that once you switch to another font, you may end up with too many spaces in your prompt, so you'll have to change icons in your theme config.
from powerlevel10k.
Related Issues (20)
- How can i change ~ from my prompt HOT 3
- powerlevel prints garbage as bash prompt when venv activated HOT 10
- timewarrior segment not showing? HOT 5
- P9K_SSH not set when SSH into WSL HOT 1
- Git icons don't change colour HOT 3
- Promptbar graphic broken issue HOT 1
- unexpected symbol when creating a virtual environment HOT 2
- Background of pyenv doesn't change in p10k file
- The venv doesn't show when activated HOT 3
- OS Icon not working for EndeavourOS HOT 3
- Duplicating PROMPT_CHAR with Transient Prompt
- Minimizing window broking my terminal HOT 2
- Missing configuration of `POWERLEVEL9K_VIRTUALENV_GENERIC_NAMES`
- How to change the icon? HOT 4
- Detect Linux console (VC) and fall back from non-functional features HOT 1
- History and auto suggestions HOT 3
- Does the pure style not support the conda environment display? HOT 1
- i want display some welcome message at zsh startup , but encounter ` Console output during zsh initialization detected. ` HOT 1
- power10k doesn't display git status. HOT 5
- Powerlevel10k Issue displaying "?11" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerlevel10k.