mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix: mapped_locations schema definition
This commit is contained in:
parent
1bc52c3c48
commit
7e7483501c
|
@ -882,10 +882,31 @@
|
||||||
"default": "folder"
|
"default": "folder"
|
||||||
},
|
},
|
||||||
"mapped_locations": {
|
"mapped_locations": {
|
||||||
"type": "object",
|
"type": "array",
|
||||||
"title": "Mapped Locations",
|
"title": "Mapped Locations",
|
||||||
"description": "Custom glyph/text for specific paths",
|
"description": "Custom glyph/text for specific paths",
|
||||||
"additionalProperties": { "type": "string" }
|
"items": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"title": "Filesystem path"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"title": "Replacement text"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minItems": 2,
|
||||||
|
"maxItems": 2,
|
||||||
|
"additionalItems": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mapped_locations_enabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title": "Enable the Mapped Locations feature",
|
||||||
|
"description": "Replace known locations in the path with the replacements before applying the style.",
|
||||||
|
"default": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue