How to get rid of space between diamond segment and power line segment? #1985
Answered
by
JanDeDobbeleer
TommasoAmici
asked this question in
Troubleshoot
-
I'm trying to have a segment with a square start and a diamond end When using style "powerline" the start is a diamond too However, when using "diamond" there is now an extra space between the first segment and the second This is my config {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#3465a4",
"foreground": "#e4e4e4",
"properties": {
"home_icon": "~",
"style": "mixed",
"template": " \uf07c {{ .Path }} "
},
"powerline_symbol": "\ue0b0",
"leading_diamond": "",
"trailing_diamond": "\ue0b0",
"style": "powerline",
"type": "path"
},
{
"background": "#4e9a06",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#4e9a06{{ end }}"
],
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\uf126 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }} "
},
"style": "powerline",
"type": "git"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"version": 1
} |
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Mar 26, 2022
Replies: 1 comment 2 replies
-
I'll do a quick iteration on this when I'm home. Should be possible. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
TommasoAmici
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'll do a quick iteration on this when I'm home. Should be possible.