colour -> color, behaviour -> behavior, centre -> center, favourite -> favorite, and about twenty other pairs, applied consistently across comments, docs, error/UI copy, and a handful of QML identifiers that used the British spelling as their actual name: SystemSettings' serialiseValue/serialiseTable/normaliseGradient, Displays' normaliseModes, Wallpaper's normalisePolicy, SettingsBackup's serialiseHomeState, DateTime's ntpSynchronised property, Clipboard's _normalise helper, and ShortcutCapture's cancelled signal (with its onCancelled handler in ShortcutsPage.qml). Every call site and the two tests that assert on the literal source text (settings-ownership and settings-backup-live contracts) were updated in lockstep. Left untouched: config/dot/espanso/match/packages/misspell-en/ is a vendored third-party autocorrect dictionary -- its entries are typo corrections, not our prose, and rewriting them would fight the package's own purpose (and any future re-sync from upstream). The already-American `favorites` property (Home page pinned accessories) was never actually misspelled -- only nearby comments and error strings said "favourites" -- so no data migration was needed there. Claude-Session: https://claude.ai/code/session_01E6TJUAh41HaP25MVHWkhRZ
75 lines
1.6 KiB
TOML
75 lines
1.6 KiB
TOML
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||
|
||
version = 2
|
||
final_space = true
|
||
console_title_template = '{{ .Shell }} in {{ .Folder }}'
|
||
|
||
[[blocks]]
|
||
type = 'prompt'
|
||
alignment = 'left'
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
type = 'path'
|
||
style = 'plain'
|
||
background = 'transparent'
|
||
foreground = 'blue'
|
||
template = '{{ .Path }}'
|
||
|
||
[blocks.segments.properties]
|
||
style = 'full'
|
||
|
||
[[blocks.segments]]
|
||
type = 'git'
|
||
style = 'plain'
|
||
foreground = 'p:gray'
|
||
background = 'transparent'
|
||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
|
||
|
||
[blocks.segments.properties]
|
||
branch_icon = ''
|
||
commit_icon = '@'
|
||
fetch_status = true
|
||
|
||
[[blocks]]
|
||
type = 'rprompt'
|
||
overflow = 'hidden'
|
||
|
||
[[blocks.segments]]
|
||
type = 'executiontime'
|
||
style = 'plain'
|
||
foreground = 'yellow'
|
||
background = 'transparent'
|
||
template = '{{ .FormattedMs }}'
|
||
|
||
[blocks.segments.properties]
|
||
threshold = 5000
|
||
|
||
[[blocks]]
|
||
type = 'prompt'
|
||
alignment = 'left'
|
||
newline = true
|
||
|
||
[[blocks.segments]]
|
||
type = 'text'
|
||
style = 'plain'
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}magenta{{end}}",
|
||
]
|
||
background = 'transparent'
|
||
template = '❯'
|
||
|
||
[transient_prompt]
|
||
foreground_templates = [
|
||
"{{if gt .Code 0}}red{{end}}",
|
||
"{{if eq .Code 0}}magenta{{end}}",
|
||
]
|
||
background = 'transparent'
|
||
template = '❯ '
|
||
|
||
[secondary_prompt]
|
||
foreground = 'magenta'
|
||
background = 'transparent'
|
||
template = '❯❯ '
|