Add space between two segments with style: powerline #4823
Answered
by
JanDeDobbeleer
joegoldman2
asked this question in
Troubleshoot
-
Considering: {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "diamond",
"foreground": "#FFF",
"background": "#081d63",
"trailing_diamond": "\ue0b0",
"template": " {{ .Path }} ",
"properties": {
"style": "mixed"
}
},
{
"type": "text",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#000",
"background": "#08844e",
"template": " Hello World "
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#000",
"background": "#cb1da2",
"template": " {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "15:04:05"
}
}
]
}
],
"pwd": "osc99"
} The result is the following: I don't really manage to add the same space that exists between the segments path and text, between text and time. Does anyone has any idea? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Apr 8, 2024
Replies: 1 comment 2 replies
-
@joegoldman2 not possible, you need to use a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
joegoldman2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@joegoldman2 not possible, you need to use a
diamond
style for this.