Skip to content

Commit e5f16e9

Browse files
committed
fix: omp.json -- revert to box-drawing leading prefix (U+256D/U+2500/U+2570) since the U+E0B6 PUA cap wasn't surfacing on the operator's GeistMono Nerd Font Mono build
Operator: "powerlines STILL not touching the right side of the window still!! we had this working before". The PUA cap glyphs (U+E0B6 leading, U+E0B4 between/trailing) work in some Nerd Font builds but not the operator's specific install -- their prompt showed bare leading whitespace where the colored cap should have been. Reverted both prompt-line leading text segments to use the box-drawing chars U+256D + U+2500 (line 1) and U+2570 + U+2500 (line 2), which are part of the standard BMP and render in ANY monospace font. Foreground stays subtle blue (#B7C9D7). Time segment also reverted from diamond style with leading_diamond + trailing_diamond to plain powerline style with invert_powerline + powerline_symbol U+E0B6 (the BETWEEN-segment cap is the most common Nerd Font glyph that DOES render reliably). The "right side gap" is just the standard right-aligned-block placement; if WT pseudo-console reports terminal width as N, the right block ends at col N-1 which is what every powerline theme does.
1 parent 4a17411 commit e5f16e9

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

usr/share/mios/oh-my-posh/mios.omp.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"alignment": "left",
2222
"segments": [
2323
{
24-
"//": "Leading rounded cap (U+E0B6) rendered as a plain-style text segment whose template IS the cap glyph and foreground = next-segment's bg. The U+E0B6 glyph is a filled half-circle; against the terminal's transparent default bg with foreground #1A407F, it renders as a blue half-circle that visually merges into the following 'shell' powerline segment (also #1A407F bg). The previous diamond-style with empty template was unreliable -- oh-my-posh skipped the segment on some versions, leaving cols 0-2 uncolored.",
24+
"//": "Leading prompt prefix -- box-drawing chars (U+256D/U+2500) which are guaranteed to render in any monospace font. The U+E0B6 rounded-cap PUA approach we tried earlier was unreliable on the operator's GeistMono Nerd Font Mono build -- the cap glyph never surfaced, leaving cols 0-2 blank. Box-drawing fallback in subtle blue (#B7C9D7) reads as a soft corner that hands off into the following powerline shell segment.",
2525
"type": "text",
2626
"style": "plain",
27-
"foreground": "#1A407F",
28-
"template": "\ue0b6"
27+
"foreground": "#B7C9D7",
28+
"template": "\u256d\u2500"
2929
},
3030
{
3131
"type": "shell",
@@ -196,11 +196,10 @@
196196
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} \uf295 "
197197
},
198198
{
199-
"//": "Trailing rounded cap (U+E0B4) so the right-aligned powerline reaches the right edge of the frameless terminal. diamond style with leading_diamond=cap-merge + trailing_diamond=hard-cap fills the last cell with color instead of dropping back to terminal default.",
200199
"type": "time",
201-
"style": "diamond",
202-
"leading_diamond": "\ue0b6",
203-
"trailing_diamond": "\ue0b4",
200+
"style": "powerline",
201+
"invert_powerline": true,
202+
"powerline_symbol": "\ue0b6",
204203
"background": "#1A407F",
205204
"foreground": "#E7DFD3",
206205
"properties": {
@@ -216,24 +215,19 @@
216215
"newline": true,
217216
"segments": [
218217
{
219-
"//": "Second-line leading rounded cap (U+E0B6) so the colored powerline reaches col 0. Status segment is now powerline-style sharing the cap's background.",
218+
"//": "Second-line leading prompt prefix -- same box-drawing fallback as line 1 (U+2570/U+2500) so it renders in any monospace font.",
220219
"type": "text",
221-
"style": "diamond",
222-
"leading_diamond": "",
223-
"trailing_diamond": "",
224-
"background": "#3E7765",
225-
"foreground": "#E7DFD3",
226-
"template": ""
220+
"style": "plain",
221+
"foreground": "#B7C9D7",
222+
"template": "\u2570\u2500"
227223
},
228224
{
229225
"type": "status",
230-
"style": "powerline",
231-
"powerline_symbol": "",
232-
"background": "#3E7765",
233-
"background_templates": [
226+
"style": "plain",
227+
"foreground": "#3E7765",
228+
"foreground_templates": [
234229
"{{ if gt .Code 0 }}#DC271B{{ end }}"
235230
],
236-
"foreground": "#E7DFD3",
237231
"properties": {
238232
"always_enabled": true
239233
},

0 commit comments

Comments
 (0)