mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -08:00
fix(schema): update reference links
This commit is contained in:
parent
8dcd200e3e
commit
0c75d2a063
|
@ -3,7 +3,7 @@
|
||||||
"$id": "http://example.com/example.json",
|
"$id": "http://example.com/example.json",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "The Oh My Posh theme definition",
|
"title": "The Oh My Posh theme definition",
|
||||||
"description": "https://ohmyposh.dev/docs/config-overview",
|
"description": "https://ohmyposh.dev/docs/configuration/overview",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"color": {
|
"color": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
|
@ -15,19 +15,19 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})|black|red|green|yellow|blue|magenta|cyan|white|default|darkGray|lightRed|lightGreen|lightYellow|lightBlue|lightMagenta|lightCyan|lightWhite|transparent|parentBackground|parentForeground|background|foreground)$",
|
"pattern": "^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})|black|red|green|yellow|blue|magenta|cyan|white|default|darkGray|lightRed|lightGreen|lightYellow|lightBlue|lightMagenta|lightCyan|lightWhite|transparent|parentBackground|parentForeground|background|foreground)$",
|
||||||
"title": "Color string",
|
"title": "Color string",
|
||||||
"description": "https://ohmyposh.dev/docs/config-colors",
|
"description": "https://ohmyposh.dev/docs/configuration/colors",
|
||||||
"format": "color"
|
"format": "color"
|
||||||
},
|
},
|
||||||
"palette_reference": {
|
"palette_reference": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^p:.*$",
|
"pattern": "^p:.*$",
|
||||||
"title": "Palette reference",
|
"title": "Palette reference",
|
||||||
"description": "https://ohmyposh.dev/docs/config-colors#palette"
|
"description": "https://ohmyposh.dev/docs/configuration/colors#palette"
|
||||||
},
|
},
|
||||||
"color_templates": {
|
"color_templates": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Templates to define a color",
|
"title": "Templates to define a color",
|
||||||
"description": "https://ohmyposh.dev/docs/config-colors#color-templates",
|
"description": "https://ohmyposh.dev/docs/configuration/colors#color-templates",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/segment/properties/template"
|
"$ref": "#/definitions/segment/properties/template"
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
},
|
},
|
||||||
"block": {
|
"block": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block",
|
"description": "https://ohmyposh.dev/docs/configuration/block",
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"if": {
|
"if": {
|
||||||
|
@ -103,37 +103,37 @@
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Block type",
|
"title": "Block type",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#type",
|
"description": "https://ohmyposh.dev/docs/configuration/block#type",
|
||||||
"enum": ["prompt", "rprompt"],
|
"enum": ["prompt", "rprompt"],
|
||||||
"default": "prompt"
|
"default": "prompt"
|
||||||
},
|
},
|
||||||
"alignment": {
|
"alignment": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Block alignment",
|
"title": "Block alignment",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#alignment",
|
"description": "https://ohmyposh.dev/docs/configuration/block#alignment",
|
||||||
"enum": ["left", "right"],
|
"enum": ["left", "right"],
|
||||||
"default": "left"
|
"default": "left"
|
||||||
},
|
},
|
||||||
"newline": {
|
"newline": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Newline",
|
"title": "Newline",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#newline",
|
"description": "https://ohmyposh.dev/docs/configuration/block#newline",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"vertical_offset": {
|
"vertical_offset": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "Block vertical offset",
|
"title": "Block vertical offset",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#vertical-offset"
|
"description": "https://ohmyposh.dev/docs/configuration/block#vertical-offset"
|
||||||
},
|
},
|
||||||
"horizontal-offset": {
|
"horizontal-offset": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"title": "Block vertical offset",
|
"title": "Block vertical offset",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#horizontal-offset"
|
"description": "https://ohmyposh.dev/docs/configuration/block#horizontal-offset"
|
||||||
},
|
},
|
||||||
"segments": {
|
"segments": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Segments list, prompt elements to display based on context",
|
"title": "Segments list, prompt elements to display based on context",
|
||||||
"description": "https://ohmyposh.dev/docs/config-block#segments",
|
"description": "https://ohmyposh.dev/docs/configuration/block#segments",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": { "$ref": "#/definitions/segment" }
|
"items": { "$ref": "#/definitions/segment" }
|
||||||
}
|
}
|
||||||
|
@ -142,14 +142,14 @@
|
||||||
"segment": {
|
"segment": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "A segment",
|
"title": "A segment",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment",
|
"description": "https://ohmyposh.dev/docs/configuration/segment",
|
||||||
"default": {},
|
"default": {},
|
||||||
"required": ["type", "style"],
|
"required": ["type", "style"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Segment Type",
|
"title": "Segment Type",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#type",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#type",
|
||||||
"enum": [
|
"enum": [
|
||||||
"session",
|
"session",
|
||||||
"path",
|
"path",
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
"style": {
|
"style": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Segment Style",
|
"title": "Segment Style",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#style",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#style",
|
||||||
"enum": ["powerline", "plain", "diamond", "accordion"]
|
"enum": ["powerline", "plain", "diamond", "accordion"]
|
||||||
},
|
},
|
||||||
"foreground": { "$ref": "#/definitions/color" },
|
"foreground": { "$ref": "#/definitions/color" },
|
||||||
|
@ -216,19 +216,19 @@
|
||||||
"template": {
|
"template": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Template text",
|
"title": "Template text",
|
||||||
"description": "https://ohmyposh.dev/docs/config-templates",
|
"description": "https://ohmyposh.dev/docs/configuration/templates",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Segment Properties, used to change behavior/displaying",
|
"title": "Segment Properties, used to change behavior/displaying",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#properties",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#properties",
|
||||||
"default": {},
|
"default": {},
|
||||||
"properties": {
|
"properties": {
|
||||||
"include_folders": {
|
"include_folders": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "If specified, segment will only render in these folders",
|
"title": "If specified, segment will only render in these folders",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#include--exclude-folders",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#include--exclude-folders",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -237,7 +237,7 @@
|
||||||
"exclude_folders": {
|
"exclude_folders": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Exclude rendering in these folders",
|
"title": "Exclude rendering in these folders",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#include--exclude-folders",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#include--exclude-folders",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -246,7 +246,7 @@
|
||||||
"ignore_folders": {
|
"ignore_folders": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Deprecated - please use `exclude_folders` instead",
|
"title": "Deprecated - please use `exclude_folders` instead",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#include--exclude-folders",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#include--exclude-folders",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -290,13 +290,13 @@
|
||||||
"powerline_symbol": {
|
"powerline_symbol": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Powerline Symbol",
|
"title": "Powerline Symbol",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#powerline-symbol",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#powerline-symbol",
|
||||||
"default": "\uE0B0"
|
"default": "\uE0B0"
|
||||||
},
|
},
|
||||||
"invert_powerline": {
|
"invert_powerline": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Flip the Powerline symbol vertically",
|
"title": "Flip the Powerline symbol vertically",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#invert-powerline",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#invert-powerline",
|
||||||
"default": false
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -313,13 +313,13 @@
|
||||||
"leading_diamond": {
|
"leading_diamond": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Leading diamond",
|
"title": "Leading diamond",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#leading-diamond",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#leading-diamond",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"trailing_diamond": {
|
"trailing_diamond": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Trailing diamond",
|
"title": "Trailing diamond",
|
||||||
"description": "https://ohmyposh.dev/docs/config-segment#trailing-diamond",
|
"description": "https://ohmyposh.dev/docs/configuration/segment#trailing-diamond",
|
||||||
"default": ""
|
"default": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2142,19 +2142,19 @@
|
||||||
"final_space": {
|
"final_space": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Final Space",
|
"title": "Final Space",
|
||||||
"description": "https://ohmyposh.dev/docs/config-overview#general-settings",
|
"description": "https://ohmyposh.dev/docs/configuration/overview#general-settings",
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"osc99": {
|
"osc99": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"title": "Enable OSC99",
|
"title": "Enable OSC99",
|
||||||
"description": "https://ohmyposh.dev/docs/config-overview#general-settings",
|
"description": "https://ohmyposh.dev/docs/configuration/overview#general-settings",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"console_title_template": {
|
"console_title_template": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Console Title Template",
|
"title": "Console Title Template",
|
||||||
"description": "https://ohmyposh.dev/docs/config-title#console-title-template",
|
"description": "https://ohmyposh.dev/docs/configuration/title#console-title-template",
|
||||||
"default": "{{ .Shell }} in {{ .Folder }}"
|
"default": "{{ .Shell }} in {{ .Folder }}"
|
||||||
},
|
},
|
||||||
"terminal_background": { "$ref": "#/definitions/color" },
|
"terminal_background": { "$ref": "#/definitions/color" },
|
||||||
|
@ -2162,13 +2162,13 @@
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Block array",
|
"title": "Block array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"description": "https://ohmyposh.dev/docs/config-overview#blocks",
|
"description": "https://ohmyposh.dev/docs/configuration/overview#blocks",
|
||||||
"items": { "$ref": "#/definitions/block" }
|
"items": { "$ref": "#/definitions/block" }
|
||||||
},
|
},
|
||||||
"tooltips": {
|
"tooltips": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Tooltip list, prompt elements to display based on context",
|
"title": "Tooltip list, prompt elements to display based on context",
|
||||||
"description": "https://ohmyposh.dev/docs/config-tooltips",
|
"description": "https://ohmyposh.dev/docs/configuration/tooltips",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"allOf": [{ "$ref": "#/definitions/segment" }],
|
"allOf": [{ "$ref": "#/definitions/segment" }],
|
||||||
|
@ -2187,27 +2187,27 @@
|
||||||
"transient_prompt": {
|
"transient_prompt": {
|
||||||
"$ref": "#/definitions/extra_prompt",
|
"$ref": "#/definitions/extra_prompt",
|
||||||
"title": "Transient Prompt Setting",
|
"title": "Transient Prompt Setting",
|
||||||
"description": "https://ohmyposh.dev/docs/config-transient"
|
"description": "https://ohmyposh.dev/docs/configuration/transient"
|
||||||
},
|
},
|
||||||
"valid_line": {
|
"valid_line": {
|
||||||
"$ref": "#/definitions/extra_prompt",
|
"$ref": "#/definitions/extra_prompt",
|
||||||
"title": "Valid Prompt Setting",
|
"title": "Valid Prompt Setting",
|
||||||
"description": "https://ohmyposh.dev/docs/config-prompt-override"
|
"description": "https://ohmyposh.dev/docs/configuration/prompt-override"
|
||||||
},
|
},
|
||||||
"error_line": {
|
"error_line": {
|
||||||
"$ref": "#/definitions/extra_prompt",
|
"$ref": "#/definitions/extra_prompt",
|
||||||
"title": "Error Prompt Setting",
|
"title": "Error Prompt Setting",
|
||||||
"description": "https://ohmyposh.dev/docs/config-prompt-override"
|
"description": "https://ohmyposh.dev/docs/configuration/prompt-override"
|
||||||
},
|
},
|
||||||
"secondary_prompt": {
|
"secondary_prompt": {
|
||||||
"$ref": "#/definitions/extra_prompt",
|
"$ref": "#/definitions/extra_prompt",
|
||||||
"title": "Secondary Prompt Setting",
|
"title": "Secondary Prompt Setting",
|
||||||
"description": "https://ohmyposh.dev/docs/config-secondary-prompt"
|
"description": "https://ohmyposh.dev/docs/configuration/secondary-prompt"
|
||||||
},
|
},
|
||||||
"palette": {
|
"palette": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Palette",
|
"title": "Palette",
|
||||||
"description": "https://ohmyposh.dev/docs/config-colors#palette",
|
"description": "https://ohmyposh.dev/docs/configuration/colors#palette",
|
||||||
"default": {},
|
"default": {},
|
||||||
"patternProperties": {
|
"patternProperties": {
|
||||||
".*": { "$ref": "#/definitions/color" }
|
".*": { "$ref": "#/definitions/color" }
|
||||||
|
|
Loading…
Reference in a new issue