Closed mattcargile closed 2 years ago
it's related to this property: "prefix": "<transparent></> \ufa1e"
.
If the \ufa1e
font is removed, the problem disappears. The issue does not happen with iTerm2 on macos for example.
It's an issue related to unicode font space with windows terminal which is open since months(if I remember well).
see https://github.com/JanDeDobbeleer/oh-my-posh/discussions/668
Oops! I should have done more searching of open issues! Not sure how to handle this one now.
EDIT: Oh I see it is a Discussion. I'll have to remember to search there. Can the "postfix"
fix be added to the default jandedobbeller.omp.json
? Or would it be more ideal on a per user basis fix?
I followed the Answer in the previously mentioned Discussion and I couldn't get it to work. I modified this json
block. I added "postfix"
{
"background": "#83769c",
"foreground": "#ffffff",
"leading_diamond": "",
"properties": {
"always_enabled": true,
"prefix": "<transparent></> 羽",
"postfix": "\u2800"
},
"style": "plain",
"trailing_diamond": "",
"type": "executiontime"
}
@mattcargile changing the icon can also help, but in this case the spaces in between the prefix might also be causing the issue. Let's continue the conversation as a Q&A as this isn't an issue with oh-my-posh.
Code of Conduct
What happened?
Within Windows Terminal
1.11.2921.0
, there is an unsightly space betweenexecutiontime
andexit
within thejandedobbeleer.omp
. This appears to occur on less than one second runtimes.I found it running the below code and from my slightly modified
json
.An interesting note is that VS Code doesn't reflect this same behavior.
Version
5.14.0
Theme
A modified
jandedobbeleer.omp
. The default theme has the same "issue".Here is my version below. I have only added Spotify instead of Youtube to it. Might be other differences from the original theme if there have been changes to this theme since maybe early version 3 of
oh-my-posh.exe
.What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Relevant log output