docs: add default column to properties table

This commit is contained in:
ivan-the-terrible 2024-04-04 21:20:48 +00:00 committed by Jan De Dobbeleer
parent aaaa83f0a5
commit 2b5a62386b
76 changed files with 923 additions and 756 deletions

View file

@ -114,6 +114,39 @@
"description": "Override the status format for a specific change. Example: {\"Added\": \"Added: %d\"}", "description": "Override the status format for a specific change. Example: {\"Added\": \"Added: %d\"}",
"default": {} "default": {}
}, },
"folders": {
"type": "array",
"title": "Folders",
"description": "The folders to look for when determining if a folder is a workspace",
"default": [],
"items": {
"type": "string"
}
},
"branch_max_length": {
"type": "integer",
"title": "Branch max length",
"description": "the max length for the displayed branch name where 0 implies full length",
"default": 0
},
"truncate_symbol": {
"type": "string",
"title": "Truncate Symbol",
"description": "Icon/text to use to indicate that the branch name has been truncated",
"default": ""
},
"native_fallback": {
"type": "boolean",
"title": "Native Fallback",
"description": "Use the native command when executable is not found",
"default": false
},
"full_branch_path": {
"type": "boolean",
"title": "Full branch path",
"description": "display the full branch path instead of only the branch name",
"default": true
},
"extra_prompt": { "extra_prompt": {
"type": "object", "type": "object",
"default": {}, "default": {},
@ -514,13 +547,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is an NPM workspace", "description": "The extensions to look for when determining if a folder is an NPM workspace",
"default": [ "default": ["package.json", "package-lock.json"],
"package.json",
"package-lock.json"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -748,6 +781,9 @@
"fetch_version": { "fetch_version": {
"$ref": "#/definitions/fetch_version" "$ref": "#/definitions/fetch_version"
}, },
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "$ref": "#/definitions/display_mode"
}, },
@ -761,14 +797,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Buf workspace", "description": "The extensions to look for when determining if a folder is a Buf workspace",
"default": [ "default": ["buf.yaml", "buf.gen.yaml", "buf.work.yaml"],
"buf.yaml",
"buf.gen.yaml",
"buf.work.yaml"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -922,14 +957,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a CMake workspace", "description": "The extensions to look for when determining if a folder is a CMake workspace",
"default": [ "default": ["*.cmake", "CMakeLists.txt"],
"*.cmake",
"CMakeLists.txt"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1001,6 +1035,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1027,6 +1064,12 @@
"description": "Always show the status", "description": "Always show the status",
"default": false "default": false
}, },
"status_template": {
"type": "string",
"title": "Status Template",
"description": "The template to use for the status segment",
"default": "|"
},
"status_separator": { "status_separator": {
"type": "string", "type": "string",
"title": "Status Separator", "title": "Status Separator",
@ -1115,10 +1158,7 @@
"properties": { "properties": {
"properties": { "properties": {
"native_fallback": { "native_fallback": {
"type": "boolean", "$ref": "#/definitions/native_fallback"
"title": "Native Fallback",
"description": "Use the native fossil command when the fossil executable is not found",
"default": false
} }
} }
} }
@ -1312,6 +1352,12 @@
}, },
"status_formats": { "status_formats": {
"$ref": "#/definitions/status_formats" "$ref": "#/definitions/status_formats"
},
"upstream_icons": {
"type": "object",
"title": "Status string formats",
"description": "a key, value map representing the remote URL (or a part of that URL) and icon to use in case the upstream URL contains the key. These get precedence over the standard icons",
"default": {}
} }
} }
} }
@ -1360,13 +1406,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Go workspace", "description": "The extensions to look for when determining if a folder is a Go workspace",
"default": [ "default": ["*.go", "go.mod"],
"*.go",
"go.mod"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1455,6 +1501,9 @@
"fetch_version": { "fetch_version": {
"$ref": "#/definitions/fetch_version" "$ref": "#/definitions/fetch_version"
}, },
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "$ref": "#/definitions/display_mode"
}, },
@ -1468,14 +1517,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Deno workspace", "description": "The extensions to look for when determining if a folder is a Deno workspace",
"default": [ "default": ["*.js", "*.ts", "deno.json"],
"*.js",
"*.ts",
"deno.json"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1518,13 +1566,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Crystal workspace", "description": "The extensions to look for when determining if a folder is a Crystal workspace",
"default": [ "default": ["*.cr", "shard.yml"],
"*.cr",
"shard.yml"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1567,12 +1615,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Julia workspace", "description": "The extensions to look for when determining if a folder is a Julia workspace",
"default": [ "default": ["*.jl"],
"*.jl"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1605,6 +1654,9 @@
"missing_command_text": { "missing_command_text": {
"$ref": "#/definitions/missing_command_text" "$ref": "#/definitions/missing_command_text"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
@ -1612,15 +1664,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Perl workspace", "description": "The extensions to look for when determining if a folder is a Perl workspace",
"default": [ "default": [".perl-version", "*.pl", "*.pm", "*.t"],
".perl-version",
"*.pl",
"*.pm",
"*.t"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1672,6 +1722,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1707,6 +1760,9 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
@ -1726,6 +1782,9 @@
"*.clj", "*.clj",
"*.cljc" "*.cljc"
] ]
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1761,15 +1820,17 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Ruby workspace", "description": "The extensions to look for when determining if a folder is a Ruby workspace",
"default": [ "default": ["*.rb", "Rakefile", "Gemfile"]
"*.rb", },
"Rakefile", "folders": {
"Gemfile" "$ref": "#/definitions/folders"
]
} }
} }
} }
@ -1805,15 +1866,17 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Rust workspace", "description": "The extensions to look for when determining if a folder is a Rust workspace",
"default": [ "default": ["*.rs", "Cargo.toml", "Cargo.lock"]
"*.rs", },
"Cargo.toml", "folders": {
"Cargo.lock" "$ref": "#/definitions/folders"
]
} }
} }
} }
@ -1849,16 +1912,20 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a XMake workspace", "description": "The extensions to look for when determining if a folder is a XMake workspace",
"default": [ "default": ["xmake.lua"],
"xmake.lua"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -1969,13 +2036,13 @@
"type": "string", "type": "string",
"title": "Yarn Icon", "title": "Yarn Icon",
"description": "Icon/text to use for Yarn", "description": "Icon/text to use for Yarn",
"default": " \udb80\udd1b" "default": "\uF011B"
}, },
"npm_icon": { "npm_icon": {
"type": "string", "type": "string",
"title": "NPM Icon", "title": "NPM Icon",
"description": "Icon/text to use for NPM", "description": "Icon/text to use for NPM",
"default": " \uE71E" "default": "\uE71E"
}, },
"extensions": { "extensions": {
"type": "array", "type": "array",
@ -1993,6 +2060,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -2231,11 +2301,17 @@
"description": "The symbol to use as a separator between folders", "description": "The symbol to use as a separator between folders",
"default": "/" "default": "/"
}, },
"folder_separator_template": {
"type": "string",
"title": "Folder Separator Template",
"description": "the path which is split will be separated by this template",
"pattern": ""
},
"home_icon": { "home_icon": {
"type": "string", "type": "string",
"title": "Home Icon", "title": "Home Icon",
"description": "The icon to display when at $HOME", "description": "The icon to display when at $HOME",
"default": "/" "default": "~"
}, },
"folder_icon": { "folder_icon": {
"type": "string", "type": "string",
@ -2247,7 +2323,7 @@
"type": "string", "type": "string",
"title": "Windows Registry Icon", "title": "Windows Registry Icon",
"description": "The icon to display when in the Windows registry", "description": "The icon to display when in the Windows registry",
"default": "\uE0B1" "default": "\uF013"
}, },
"style": { "style": {
"type": "string", "type": "string",
@ -2266,7 +2342,7 @@
"unique", "unique",
"powerlevel" "powerlevel"
], ],
"default": "folder" "default": "agnoster"
}, },
"mapped_locations": { "mapped_locations": {
"type": "object", "type": "object",
@ -2280,6 +2356,12 @@
"description": "Maximum path depth to display without shortening", "description": "Maximum path depth to display without shortening",
"default": 1 "default": 1
}, },
"max_width": {
"type": "integer",
"title": "Maximum Width",
"description": "Maximum path width to display for powerlevel style",
"default": 0
},
"mapped_locations_enabled": { "mapped_locations_enabled": {
"type": "boolean", "type": "boolean",
"title": "Enable the Mapped Locations feature", "title": "Enable the Mapped Locations feature",
@ -2315,13 +2397,25 @@
"type": "string", "type": "string",
"title": "The folder format", "title": "The folder format",
"description": "Golang string format to apply to the folder name", "description": "Golang string format to apply to the folder name",
"pattern": ".*%s.*" "pattern": "%s"
}, },
"edge_format": { "edge_format": {
"type": "string", "type": "string",
"title": "The format to use on the start and end folder", "title": "The format to use on the start and end folder",
"description": "Golang string format to apply to the start and end folder", "description": "Golang string format to apply to the start and end folder",
"pattern": ".*%s.*" "pattern": "%s"
},
"left_format": {
"type": "string",
"title": "The format to use on first folder of the path",
"description": "Will default to whatever edge_format is set to",
"pattern": "%s"
},
"right_format": {
"type": "string",
"title": "The format to use on the last folder of the path",
"description": "Will default to whatever edge_format is set to",
"pattern": "%s"
}, },
"gitdir_format": { "gitdir_format": {
"type": "string", "type": "string",
@ -2463,6 +2557,9 @@
"fetch_version": { "fetch_version": {
"$ref": "#/definitions/fetch_version" "$ref": "#/definitions/fetch_version"
}, },
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": { "missing_command_text": {
"$ref": "#/definitions/missing_command_text" "$ref": "#/definitions/missing_command_text"
}, },
@ -2477,6 +2574,15 @@
}, },
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
},
"extensions": {
"type": "array",
"title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Quasar workspace",
"default": ["quasar.config", "quasar.config.js"]
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -2518,6 +2624,9 @@
}, },
"status_formats": { "status_formats": {
"$ref": "#/definitions/status_formats" "$ref": "#/definitions/status_formats"
},
"native_fallback": {
"$ref": "#/definitions/native_fallback"
} }
} }
} }
@ -2729,19 +2838,19 @@
"type": "string", "type": "string",
"title": "Playing Icon", "title": "Playing Icon",
"description": "Text/icon to show when playing", "description": "Text/icon to show when playing",
"default": "\uE602" "default": "\uE602 "
}, },
"paused_icon": { "paused_icon": {
"type": "string", "type": "string",
"title": "Paused Icon", "title": "Paused Icon",
"description": "Text/icon to show when paused", "description": "Text/icon to show when paused",
"default": "\uF8E3" "default": "\uF8E3 "
}, },
"stopped_icon": { "stopped_icon": {
"type": "string", "type": "string",
"title": "Stopped Icon", "title": "Stopped Icon",
"description": "Text/icon to show when stopped", "description": "Text/icon to show when stopped",
"default": "\uF04D" "default": "\uF04D "
}, },
"api_url": { "api_url": {
"type": "string", "type": "string",
@ -2780,9 +2889,21 @@
"location": { "location": {
"type": "string", "type": "string",
"title": "location", "title": "location",
"description": "Location to use for the API call. Formatted as <City>,<STATE>,<COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes.", "description": "Location to use for the API call interpretted only if valid coordinates aren't given. Formatted as <City>,<STATE>,<COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes.",
"default": "De Bilt,NL" "default": "De Bilt,NL"
}, },
"latitude" : {
"type": "number",
"title": "Latitude",
"description": "The latitude of the requested location, valid between -90 and 90",
"default": 91
},
"longitude" : {
"type": "number",
"title": "Longitude",
"description": "The longitude of the requested location, valid between -180 and 180",
"default": 181
},
"units": { "units": {
"type": "string", "type": "string",
"title": "units", "title": "units",
@ -2841,13 +2962,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if a folder is a Elixir workspace", "description": "The extensions to look for when determining if a folder is a Elixir workspace",
"default": [ "default": ["*.ex", "*.exs"],
"*.ex",
"*.exs"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -2949,25 +3070,25 @@
}, },
"ride_icon": { "ride_icon": {
"type": "string", "type": "string",
"title": "Alternative icon", "title": "Ride icon",
"description": "Alternative icon for this activity type", "description": "Alternative icon for this activity type",
"default": "\uf206" "default": "\uf206"
}, },
"run_icon": { "run_icon": {
"type": "string", "type": "string",
"title": "Alternative icon", "title": "Run icon",
"description": "Alternative icon for this activity type", "description": "Alternative icon for this activity type",
"default": "\ue213" "default": "\ue213"
}, },
"skiing_icon": { "skiing_icon": {
"type": "string", "type": "string",
"title": "Alternative icon", "title": "Skiing icon",
"description": "Alternative icon for this activity type", "description": "Alternative icon for this activity type",
"default": "\ue213" "default": "\ue213"
}, },
"workout_icon": { "workout_icon": {
"type": "string", "type": "string",
"title": "Alternative icon", "title": "Workout icon",
"description": "Alternative icon for this activity type", "description": "Alternative icon for this activity type",
"default": "\ue213" "default": "\ue213"
}, },
@ -3019,6 +3140,9 @@
}, },
"status_formats": { "status_formats": {
"$ref": "#/definitions/status_formats" "$ref": "#/definitions/status_formats"
},
"native_fallback": {
"$ref": "#/definitions/native_fallback"
} }
} }
} }
@ -3045,6 +3169,9 @@
"fetch_version": { "fetch_version": {
"$ref": "#/definitions/fetch_version" "$ref": "#/definitions/fetch_version"
}, },
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "$ref": "#/definitions/display_mode"
}, },
@ -3065,6 +3192,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3094,6 +3224,9 @@
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "$ref": "#/definitions/display_mode"
}, },
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": { "version_url_template": {
"$ref": "#/definitions/version_url_template" "$ref": "#/definitions/version_url_template"
}, },
@ -3104,13 +3237,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a React project", "description": "The extensions to look for when determining if the current directory is a React project",
"default": "default": ["package.json"],
[
"package.json"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3137,6 +3270,9 @@
"fetch_version": { "fetch_version": {
"$ref": "#/definitions/fetch_version" "$ref": "#/definitions/fetch_version"
}, },
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "$ref": "#/definitions/display_mode"
}, },
@ -3150,14 +3286,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is an Nx project", "description": "The extensions to look for when determining if the current directory is an Nx project",
"default": "default": ["workspace.json", "nx.json"],
[
"workspace.json",
"nx.json"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3193,12 +3328,14 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is an OCaml project", "description": "The extensions to look for when determining if the current directory is an OCaml project",
"default": "default": [
[
"*.ml", "*.ml",
"*.mli", "*.mli",
"dune", "dune",
@ -3208,6 +3345,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3352,22 +3492,16 @@
"default": "\uF412" "default": "\uF412"
}, },
"truncate_symbol": { "truncate_symbol": {
"type": "string", "$ref": "#/definitions/truncate_symbol"
"title": "Truncate Symbol",
"description": "Icon/text to use to indicate that the branch name has been truncated",
"default": ""
}, },
"branch_max_length": { "branch_max_length": {
"type": "integer", "$ref": "#/definitions/branch_max_length"
"title": "Branch max length",
"description": "the max length for the displayed branch name where 0 implies full length",
"default": 0
}, },
"full_branch_path": { "full_branch_path": {
"type": "boolean", "$ref": "#/definitions/full_branch_path"
"title": "Full branch path", },
"description": "display the full branch path instead of only the branch name", "native_fallback": {
"default": false "$ref": "#/definitions/native_fallback"
} }
} }
} }
@ -3571,11 +3705,7 @@
"type": "string", "type": "string",
"title": "Use Stack GHC", "title": "Use Stack GHC",
"description": "Get the GHC version used by Stack. Will decrease performance. Boolean indicating whether stack ghc was used available in template as .StackGhc", "description": "Get the GHC version used by Stack. Will decrease performance. Boolean indicating whether stack ghc was used available in template as .StackGhc",
"enum": [ "enum": ["always", "package", "never"],
"always",
"package",
"never"
],
"default": "never" "default": "never"
}, },
"extensions": { "extensions": {
@ -3593,6 +3723,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3657,12 +3790,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a UI5 project", "description": "The extensions to look for when determining if the current directory is a UI5 project",
"default": [ "default": ["*ui5*.y*ml"],
"*ui5*.y*ml"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3742,16 +3876,20 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a Vala project", "description": "The extensions to look for when determining if the current directory is a Vala project",
"default": [ "default": ["*.vala"],
"*.vala"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3794,14 +3932,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a Cloud Foundry project", "description": "The extensions to look for when determining if the current directory is a Cloud Foundry project",
"default": "default": ["manifest.yml", "mta.yaml"],
[
"manifest.yml",
"mta.yaml"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3823,7 +3960,14 @@
"properties": { "properties": {
"properties": { "properties": {
"display_mode": { "display_mode": {
"$ref": "#/definitions/display_mode" "type": "string",
"title": "Display Mode",
"description": "Determines whether the segment is displayed always or only if a file matching the extensions are present in the current folder",
"enum": [
"always",
"files"
],
"default": "always"
} }
} }
} }
@ -3866,15 +4010,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a Kotlin project", "description": "The extensions to look for when determining if the current directory is a Kotlin project",
"default": "default": ["*.kt", "*.kts", "*.ktm"],
[
"*.kt",
"*.kts",
"*.ktm"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -3966,24 +4108,20 @@
"type": "string", "type": "string",
"title": "Preferred Executable", "title": "Preferred Executable",
"description": "The preferred executable to use when fetching the version.", "description": "The preferred executable to use when fetching the version.",
"enum": [ "enum": ["lua", "luajit"],
"lua",
"luajit"
],
"default": "lua" "default": "lua"
}, },
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a Lua project", "description": "The extensions to look for when determining if the current directory is a Lua project",
"default": "default": ["*.lua", "*.rockspec"],
[
"*.lua",
"*.rockspec"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -4026,13 +4164,13 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a Swift project", "description": "The extensions to look for when determining if the current directory is a Swift project",
"default": [ "default": ["*.swift", "*.SWIFT"],
"*.swift",
"*.SWIFT"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -4068,20 +4206,20 @@
"cache_version": { "cache_version": {
"$ref": "#/definitions/cache_version" "$ref": "#/definitions/cache_version"
}, },
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"extensions": { "extensions": {
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is a CDS project", "description": "The extensions to look for when determining if the current directory is a CDS project",
"default": "default": [".cdsrc.json", ".cdsrc-private.json", "*.cds"],
[
".cdsrc.json",
".cdsrc-private.json",
"*.cds"
],
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -4124,8 +4262,7 @@
"type": "array", "type": "array",
"title": "Extensions", "title": "Extensions",
"description": "The extensions to look for when determining if the current directory is an R project", "description": "The extensions to look for when determining if the current directory is an R project",
"default": "default": [
[
"*.R", "*.R",
"*.Rmd", "*.Rmd",
"*.Rsx", "*.Rsx",
@ -4137,6 +4274,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
},
"folders": {
"$ref": "#/definitions/folders"
} }
} }
} }
@ -4199,7 +4339,7 @@
"type": "boolean", "type": "boolean",
"title": "Display Status", "title": "Display Status",
"description": "Display the local changes or not", "description": "Display the local changes or not",
"default": true "default": false
}, },
"status_formats": { "status_formats": {
"$ref": "#/definitions/status_formats" "$ref": "#/definitions/status_formats"
@ -4227,7 +4367,7 @@
"type": "string", "type": "string",
"title": "URL", "title": "URL",
"description": "The URL to the Nightscout API", "description": "The URL to the Nightscout API",
"default": "https://your.nightscout.url/api/v1/entries.json" "default": ""
}, },
"cache_timeout": { "cache_timeout": {
"type": "integer", "type": "integer",

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `ng` | | `fetch_version` | `boolean` | `true` | fetch the angular version |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `angular.json` file is present (**default**)</li></ul> | | `missing_command_text` | `string` | | text to display when the command is missing |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `angular.json` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,9 +25,9 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------- | ------------------------------------------------------------------------------ | ------------------ | | ----------------- | :-------: | :-----: | -------------------------------------------- |
| `display_default` | `boolean` - display the segment or not when the user profile matches `default` | defaults to `true` | | `display_default` | `boolean` | `true` | display the segment when default user or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -29,9 +29,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -------- | :------: | :-----------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source` | `string` | <ul><li>`first_match`: try the CLI config first, then the PowerShell module. The first to resolve is displayed (**default**)</li><li>`cli`: fetch the information from the CLI config</li><li>`pwsh`: fetch the information from the PowerShell Module config</li></ul> | | `source` | `string` | `first_match` | <ul><li>`first_match`: try the CLI config first, then the PowerShell module. The first to resolve is displayed</li><li>`cli`: fetch the information from the CLI config</li><li>`pwsh`: fetch the information from the PowerShell Module config</li></ul> |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -29,15 +29,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the Azure Functions CLI version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the Azure Functions CLI version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `host.json` or `local.settings.json` files is present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `host.json, local.settings.json, function.json` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -59,5 +60,6 @@ import Config from "@site/src/components/Config.js";
| `.Patch` | `string` | patch number | | `.Patch` | `string` | patch number |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[templates]: /docs/configuration/templates [go-text-template]: https://golang.org/pkg/text/template/
[templates]: configuration/templates.mdx
[az-func-core-tools]: https://github.com/Azure/azure-functions-core-tools [az-func-core-tools]: https://github.com/Azure/azure-functions-core-tools

View file

@ -37,13 +37,13 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------- | --------- | --------------------------------------------------------------------------------------------- | | ------------------- | :-------: | :-----: | ----------------------------------------------------------------------- |
| `display_error` | `boolean` | show the error context when failing to retrieve the battery information - defaults to `false` | | `display_error` | `boolean` | `false` | show the error context when failing to retrieve the battery information |
| `charging_icon` | `string` | icon to display when charging - defaults to empty | | `charging_icon` | `string` | | icon to display when charging |
| `discharging_icon` | `string` | icon to display when discharging - defaults to empty | | `discharging_icon` | `string` | | icon to display when discharging |
| `charged_icon` | `string` | icon to display when fully charged - defaults to empty | | `charged_icon` | `string` | | icon to display when fully charged |
| `not_charging_icon` | `string` | icon to display when fully charged - defaults to empty | | `not_charging_icon` | `string` | | icon to display when fully charged |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -24,17 +24,17 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the Bazel version - defaults to `true` | | `fetch_version` | `boolean` | `true` | display the Bazel version - defaults to |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.bazel`, `*.bzl`, `.bazelrc`, `.bazelversion`, `BUILD` or `WORKSPACE` files or any of Bazel's output folders are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info documentation | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info documentation |
| `icon` | `string` | the icon for the segment - defaults to `"\ue63a"` | | `icon` | `string` | `\ue63a` | the icon for the segment |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.bazel, *.bzl, BUILD, WORKSPACE, .bazelrc, .bazelversion` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | | | `folders` | `[]string` | | |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -43,14 +43,14 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- | | --------------- | :------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------- |
| `user_id` | `string` | as provided by Brewfather's Generate API Key screen | | `user_id` | `string` | | as provided by Brewfather's Generate API Key screen |
| `api_key` | `string` | as provided by Brewfather's Generate API Key screen | | `api_key` | `string` | | as provided by Brewfather's Generate API Key screen |
| `batch_id` | `string` | Get this by navigating to the desired batch on the brewfather website, the batch id is at the end of the URL in the address bar | | `batch_id` | `string` | | Get this by navigating to the desired batch on the brewfather website, the batch id is at the end of the URL in the address bar |
| `http_timeout` | `int` | in milliseconds - How long to wait for the Brewfather service to answer the request. Default 2 seconds | | `http_timeout` | `int` | `2` | in milliseconds - How long to wait for the Brewfather service to answer the request |
| `cache_timeout` | `int` | in minutes - How long to wait before updating the data from Brewfather. Default is 5 minutes | | `cache_timeout` | `int` | `5` | in minutes - How long to wait before updating the data from Brewfather |
| `day_icon` | `string` | icon or letter to use to indicate days. Default is "d" | | `day_icon` | `string` | `d` | icon or letter to use to indicate days |
## Icons ## Icons

View file

@ -23,15 +23,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `buf` | | `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `buf` |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `buf.yaml`, `buf.gen.yaml` or `buf.work.yaml` files are present (**default**)</li></ul> | | `missing_command_text` | `string` | | text to display when the command is missing |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `buf.yaml, buf.gen.yaml, buf.work.yaml` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -45,10 +45,10 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | --------------- | :---: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `http_timeout` | `int` | Timeout (in milliseconds) for HTTP requests. The default is 20ms, but you may need to set this to as high as 5000ms to handle slow API requests. | | `http_timeout` | `int` | `20` | Timeout (in milliseconds) for HTTP requests. The default is 20ms, but you may need to set this to as high as 5000ms to handle slow API requests. |
| `cache_timeout` | `int` | Timeout (in minutes) for the response cache. The default is 10m. A value of 0 disables the cache. | | `cache_timeout` | `int` | `10` | Timeout (in minutes) for the response cache. The default is 10m. A value of 0 disables the cache. |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the CDS version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the CDS version |
| `missing_command_text` | `string` | text to display when the cds command is missing - defaults to empty | | `missing_command_text` | `string` | `""` | text to display when the cds command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is displayed when `.cdsrc.json`, `.cdsrc-private` or `*.cds` file is present</li><li>`context`: the segment is displayed when conditions from `files` mode are fulfilled or `package.json` file is present and `@sap/cds` is in `dependencies` section (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `.cdsrc.json, .cdsrc-private.json, *.cds` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -56,5 +57,6 @@ import Config from "@site/src/components/Config.js";
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
| `.HasDependency` | `bool` | a flag if `@sap/cds` was found in `package.json` | | `.HasDependency` | `bool` | a flag if `@sap/cds` was found in `package.json` |
[templates]: /docs/configuration/templates [go-text-template]: https://golang.org/pkg/text/template/
[templates]: configuration/templates.mdx
[sap-cap-cds]: https://cap.cloud.sap/docs/tools/#command-line-interface-cli [sap-cap-cds]: https://cap.cloud.sap/docs/tools/#command-line-interface-cli

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the Cloud Foundry CLI version - defaults to `true` | | `fetch_version` | `boolean` | `true` | display the Cloud Foundry CLI version |
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the java command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is displayed when `manifest.yml` or `mta.yaml` file is present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `manifest.yml, mta.yaml` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,9 +23,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -------------- | :------: | :------: | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed (**default**)</li><li>`files`: the segment is only displayed when a `manifest.yml` file is present </li></ul> | | `display_mode` | `string` | `always` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `manifest.yml` file is present </li></ul> |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the cmake version - defaults to `true` | | `fetch_version` | `boolean` | `true` | display the cmake version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cmake` or `CMakeLists.txt` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.cmake, CMakeLists.txt` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -42,11 +42,11 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------- | -------- | --------------------------------------------------------------------------------- | | --------- | :------: | :-----: | --------------------------------------------------------------------------------- |
| `shell` | `string` | the shell in which to run the command in. Uses `shell -c command` under the hood. | | `shell` | `string` | `bash` | the shell in which to run the command in. Uses `shell -c command` under the hood. |
| `command` | `string` | the command(s) to run | | `command` | `string` | | the command(s) to run |
| `script` | `string` | the path to a script to run | | `script` | `string` | | the path to a script to run |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -26,9 +26,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------ | :------: | :--------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type` | `string` | the type of connection to display. Can be a single value or multiple joined by <inlineCode>\|</inlineCode> . The first to resolve is shown (**default value** is <inlineCode>wifi\|ethernet</inlineCode>). Possible values:<ul><li>`wifi`</li><li>`ethernet`</li><li>`bluetooth`</li><li>`cellular`</li></ul> | | `type` | `string` | `wifi\|ethernet` | the type of connection to display. Can be a single value or multiple joined by a pipe <inlineCode>\|</inlineCode> . The first to resolve is shown. Possible values:<ul><li>`wifi`</li><li>`ethernet`</li><li>`bluetooth`</li><li>`cellular`</li></ul> |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the julia version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the crystal version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cr` or `shard.yml` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.cr, shard.yml` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the dart version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the dart version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool` folder are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.dart, pubspec.yaml, pubspec.yml, pubspec.lock` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,15 +23,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :---------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `deno` | | `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `deno` |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.ts*`, `*.js` or `deno.json` files are present (**default**)</li></ul> | | `missing_command_text` | `string` | | text to display when the command is missing |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.ts, *.js, deno.json` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,13 +23,16 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :----------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` is present - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.slnf`, `*.csproj`, `*.vbproj`, or `*.fsproj` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | `*.cs, *.csx, *.vb, *.fs, *.fsx, *.sln, *.slnf, *.csproj, *.fsproj, *.vbproj, global.json` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the elixir version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the elixir version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.ex` or `*.exs` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.ex, *.exs` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -28,11 +28,11 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------- | --------- | ----------------------------------------------------------------------------------- | | ---------------- | :-------: | :------: | ------------------------------------------------------------------------- |
| `always_enabled` | `boolean` | always show the duration - defaults to `false` | | `always_enabled` | `boolean` | `false` | always show the duration |
| `threshold` | `number` | minimum duration (milliseconds) required to enable this segment - defaults to `500` | | `threshold` | `number` | `500` | minimum duration (milliseconds) required to enable this segment |
| `style` | `enum` | one of the available format options - defaults to `austin` | | `style` | `enum` | `austin` | one of the available format options |
### Style ### Style

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the flutter version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the flutter version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool` folder are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.dart, pubspec.yaml, pubspec.yml, pubspec.lock` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | `.dart_tool` | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -22,9 +22,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------- | :-------: | :-----: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `native_fallback` | `boolean` | when set to `true` and `fossil.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil executable to fetch data. Not all information can be displayed in this case. Defaults to `false` | | `native_fallback` | `boolean` | `false` | when set to `true` and `fossil.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil executable to fetch data. Not all information can be displayed in this case |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -69,55 +69,55 @@ import Config from "@site/src/components/Config.js";
As doing multiple git calls can slow down the prompt experience, we do not fetch information by default. As doing multiple git calls can slow down the prompt experience, we do not fetch information by default.
You can set the following properties to `true` to enable fetching additional information (and populate the template). You can set the following properties to `true` to enable fetching additional information (and populate the template).
| Name | Type | Description | | Name | Type | Default | Description |
| --------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------------- | :-----------------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` | | `fetch_status` | `boolean` | `false` | fetch the local changes |
| `ignore_status` | `[]string` | do not fetch status for these repo's. Uses the repo's root folder and same logic as the [exclude_folders][exclude_folders] property | | `ignore_status` | `[]string` | | do not fetch status for these repo's. Uses the repo's root folder and same logic as the [exclude_folders][exclude_folders] property |
| `fetch_upstream_icon` | `boolean` | fetch upstream icon - defaults to `false` | | `fetch_upstream_icon` | `boolean` | `false` | fetch upstream icon |
| `fetch_bare_info` | `boolean` | fetch bare repo info - defaults to `false` | | `fetch_bare_info` | `boolean` | `false` | fetch bare repo info |
| `untracked_modes` | `map[string]string` | map of repo's where to override the default [untracked files mode][untracked]:<ul><li>`no`</li><li>`normal`</li><li>`all`</li></ul>For example `"untracked_modes": { "/Users/me/repos/repo1": "no" }` - defaults to `normal` for all repo's. If you want to override for all repo's, use `*` to set the mode instead of the repo path | | `untracked_modes` | `map[string]string` | | map of repo's where to override the default [untracked files mode][untracked]:<ul><li>`no`</li><li>`normal`</li><li>`all`</li></ul>For example `"untracked_modes": { "/Users/me/repos/repo1": "no" }` - defaults to `normal` for all repo's. If you want to override for all repo's, use `*` to set the mode instead of the repo path |
| `ignore_submodules` | `map[string]string` | map of repo's where to change the [--ignore-submodules][submodules] flag (`none`, `untracked`, `dirty` or `all`). For example `"ignore_submodules": { "/Users/me/repos/repo1": "all" }`. If you want to override for all repo's, use `*` to set the mode instead of the repo path | | `ignore_submodules` | `map[string]string` | | map of repo's where to change the [--ignore-submodules][submodules] flag (`none`, `untracked`, `dirty` or `all`). For example `"ignore_submodules": { "/Users/me/repos/repo1": "all" }`. If you want to override for all repo's, use `*` to set the mode instead of the repo path |
| `native_fallback` | `boolean` | when set to `true` and `git.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native git executable to fetch data. Not all information can be displayed in this case. Defaults to `false` | | `native_fallback` | `boolean` | `false` | when set to `true` and `git.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native git executable to fetch data. Not all information can be displayed in this case |
| `fetch_user` | [`User`](#user) | fetch the current configured user for the repository - defaults to `false` | | `fetch_user` | [`User`](#user) | `false` | fetch the current configured user for the repository |
| `status_formats` | `map[string]string` | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. Defaults to an empty map. | | `status_formats` | `map[string]string` | | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. |
### Icons ### Icons
#### Branch #### Branch
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------------- | -------- | -------------------------------------------------------------------------------------------- | | ----------------------- | :------: | :------: | -------------------------------------------------------------------------- |
| `branch_icon` | `string` | the icon to use in front of the git branch name - defaults to `\uE0A0 ` | | `branch_icon` | `string` | `\uE0A0` | the icon to use in front of the git branch name |
| `branch_identical_icon` | `string` | the icon to display when remote and local are identical - defaults to `\u2261` | | `branch_identical_icon` | `string` | `\u2261` | the icon to display when remote and local are identical |
| `branch_ahead_icon` | `string` | the icon to display when the local branch is ahead of its remote - defaults to `\u2191` | | `branch_ahead_icon` | `string` | `\u2191` | the icon to display when the local branch is ahead of its remote |
| `branch_behind_icon` | `string` | the icon to display when the local branch is behind its remote - defaults to `\u2193` | | `branch_behind_icon` | `string` | `\u2193` | the icon to display when the local branch is behind its remote |
| `branch_gone_icon` | `string` | the icon to display when there's no remote branch - defaults to `\u2262` | | `branch_gone_icon` | `string` | `\u2262` | the icon to display when there's no remote branch |
| `branch_max_length` | `int` | the max length for the displayed branch name where `0` implies full length - defaults to `0` | | `branch_max_length` | `int` | `0` | the max length for the displayed branch name where `0` implies full length |
| `truncate_symbol` | `string` | the icon to display when a branch name is truncated - defaults to empty | | `truncate_symbol` | `string` | | the icon to display when a branch name is truncated |
#### HEAD #### HEAD
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------ | -------- | ---------------------------------------------------------------------------------------- | | ------------------ | :------: | :------: | ---------------------------------------------------------------- |
| `commit_icon` | `string` | icon/text to display before the commit context (detached HEAD) - defaults to `\uF417` | | `commit_icon` | `string` | `\uF417` | icon/text to display before the commit context (detached HEAD) |
| `tag_icon` | `string` | icon/text to display before the tag context - defaults to `\uF412` | | `tag_icon` | `string` | `\uF412` | icon/text to display before the tag context |
| `rebase_icon` | `string` | icon/text to display before the context when in a rebase - defaults to `\uE728 ` | | `rebase_icon` | `string` | `\uE728` | icon/text to display before the context when in a rebase |
| `cherry_pick_icon` | `string` | icon/text to display before the context when doing a cherry-pick - defaults to `\uE29B ` | | `cherry_pick_icon` | `string` | `\uE29B` | icon/text to display before the context when doing a cherry-pick |
| `revert_icon` | `string` | icon/text to display before the context when doing a revert - defaults to `\uF0E2 ` | | `revert_icon` | `string` | `\uF0E2` | icon/text to display before the context when doing a revert |
| `merge_icon` | `string` | icon/text to display before the merge context - defaults to `\uE727 ` | | `merge_icon` | `string` | `\uE727` | icon/text to display before the merge context |
| `no_commits_icon` | `string` | icon/text to display when there are no commits in the repo - defaults to `\uF594 ` | | `no_commits_icon` | `string` | `\uF594` | icon/text to display when there are no commits in the repo |
#### Upstream #### Upstream
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------- | :-----------------: | :------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `github_icon` | `string` | icon/text to display when the upstream is Github - defaults to `\uF408 ` | | `github_icon` | `string` | `\uF408` | icon/text to display when the upstream is Github |
| `gitlab_icon` | `string` | icon/text to display when the upstream is Gitlab - defaults to `\uF296 ` | | `gitlab_icon` | `string` | `\uF296` | icon/text to display when the upstream is Gitlab |
| `bitbucket_icon` | `string` | icon/text to display when the upstream is Bitbucket - defaults to `\uF171 ` | | `bitbucket_icon` | `string` | `\uF171` | icon/text to display when the upstream is Bitbucket |
| `azure_devops_icon` | `string` | icon/text to display when the upstream is Azure DevOps - defaults to `\uEBE8 ` | | `azure_devops_icon` | `string` | `\uEBE8` | icon/text to display when the upstream is Azure DevOps |
| `codecommit_icon` | `string` | icon/text to display when the upstream is AWS CodeCommit - defaults to `\uF270 ` | | `codecommit_icon` | `string` | `\uF270` | icon/text to display when the upstream is AWS CodeCommit |
| `git_icon` | `string` | icon/text to display when the upstream is not known/mapped - defaults to `\uE5FB ` | | `git_icon` | `string` | `\uE5FB` | icon/text to display when the upstream is not known/mapped |
| `upstream_icons` | `map[string]string` | a key, value map representing the remote URL (or a part of that URL) and icon to use in case the upstream URL contains the key. These get precedence over the standard icons | | `upstream_icons` | `map[string]string` | | a key, value map representing the remote URL (or a part of that URL) and icon to use in case the upstream URL contains the key. These get precedence over the standard icons |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -29,9 +29,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | --------------- | :---: | :------: | ------------------------------------------------------------------------------------------------------------------------ |
| `cache_timeout` | `int` | in minutes - How long to wait before fetching new information using the gitversion CLI. Default is 30 minutes, a value of 0 disables the cache. | | `cache_timeout` | `int` | `30` | in minutes - How long to wait before fetching new information using the gitversion CLI. A value of 0 disables the cache. |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,17 +25,17 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the golang version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the golang version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.go` or `go.mod` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `parse_mod_file` | `boolean` | parse the go.mod file instead of calling `go version` | | `parse_mod_file` | `boolean` | `false` | parse the go.mod file instead of calling `go version` |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.go, go.mod` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,17 +25,17 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :-------------------------------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the GHC version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the GHC version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.hs`, `*.lhs`, `stack.yaml`, `package.yaml`, `*.cabal`, or `cabal.project` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `stack_ghc_mode` | `string` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance.<ul><li>`never`: never use `stack ghc` (**default**)</li><li>`package`: only use `stack ghc` when `stack.yaml` is in the root of the </li><li>`always`: always use `stack ghc`</li></ul> | | `stack_ghc_mode` | `string` | `never` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance.<ul><li>`never`: never use `stack ghc`</li><li>`package`: only use `stack ghc` when `stack.yaml` is in the root of the </li><li>`always`: always use `stack ghc`</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.hs, *.lhs, stack.yaml, package.yaml, *.cabal, cabal.project` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,9 +23,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -------------- | :------: | :------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed (**default**)</li><li>`files`: the segment is only displayed when a `Chart.yaml` (or `Chart.yml`) file is present </li></ul> | | `display_mode` | `string` | `always` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `Chart.yaml` (or `Chart.yml`) file is present </li></ul> |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -28,11 +28,11 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | -------- | -------------------------------------------------------------------------------------------------------------------- | | --------------- | :------: | :---------------------: | ------------------------------------------------------------------------------- |
| `url` | `string` | The Ipify URL, by default IPv4 is used, use `https://api64.ipify.org` for IPv6 - defaults to `https://api.ipify.org` | | `url` | `string` | `https://api.ipify.org` | The Ipify URL, by default IPv4 is used, use `https://api64.ipify.org` for IPv6 |
| `http_timeout` | `int` | How long may the segment wait for a response of the ipify API? - defaults to 20ms | | `http_timeout` | `int` | `20` | in milliseconds - how long may the segment wait for a response of the ipify API |
| `cache_timeout` | `int` | in minutes - How long you want your IP address cached - defaults to 10 min | | `cache_timeout` | `int` | `10` | in minutes - How long you want your IP address cached |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :----------------------------------------------------------------------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the java version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the java version |
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present<ul><li>`pom.xml`</li><li>`build.gradle.kts`</li><li>`build.sbt`</li><li>`.java-version`</li><li>`.deps.edn`</li><li>`project.clj`</li><li>`build.boot`</li><li>`*.java`</li><li>`*.class`</li><li>`*.gradle`</li><li>`*.jar`</li><li>`*.clj`</li><li>`*.cljc`</li></ul></li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.java, *.class, *.gradle, *.jar, *.clj, *.cljr, pom.xml, build.gradle.kts, build.sbt, .java-version, .deps.edn, project.clj, build.boot` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -55,4 +56,5 @@ import Config from "@site/src/components/Config.js";
| `.Patch` | `string` | patch number | | `.Patch` | `string` | patch number |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[templates]: /docs/configuration/templates [go-text-template]: https://golang.org/pkg/text/template/
[templates]: configuration/templates.mdx

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :-------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the julia version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the julia version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.jl` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.jl` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,18 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | ## Properties
| ---------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | Name | Type | Default | Description |
| `fetch_version` | `boolean` | display the kotlin version - defaults to `true` | | ---------------------- | :--------: | :------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.kt`, `*.kts` or `*.ktm` files are present (**default**) </li></ul> | | `fetch_version` | `boolean` | `true` | fetch the kotlin version |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `missing_command_text` | `string` | | text to display when the command is missing |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `extensions` | `[]string` | `*.kt, *.kts, *.ktm` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -30,11 +30,11 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------ | --------- | ----------------------------------------------------------------------------------------------------- | | ------------------ | :-------: | :-----: | ------------------------------------------------------------------------------- |
| `display_error` | `boolean` | show the error context when failing to retrieve the kubectl information - defaults to `false` | | `display_error` | `boolean` | `false` | show the error context when failing to retrieve the kubectl information |
| `parse_kubeconfig` | `boolean` | parse kubeconfig files instead of calling out to kubectl to improve performance - defaults to `false` | | `parse_kubeconfig` | `boolean` | `false` | parse kubeconfig files instead of calling out to kubectl to improve performance |
| `context_aliases` | `object` | custom context names | | `context_aliases` | `object` | | custom context namespace |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -40,12 +40,12 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------------- | -------- | ------------------------------------------------------ | | -------------- | :------: | :-------: | ------------------------------ |
| `playing_icon` | `string` | text/icon to show when playing - defaults to `\uE602 ` | | `playing_icon` | `string` | `\uE602 ` | text/icon to show when playing |
| `stopped_icon` | `string` | text/icon to show when stopped - defaults to `\uF04D ` | | `stopped_icon` | `string` | `\uF04D ` | text/icon to show when stopped |
| `api_key` | `string` | your LastFM [API key][api-key] | | `api_key` | `string` | | your LastFM [API key][api-key] |
| `username` | `string` | your LastFM username | | `username` | `string` | | your LastFM username |
## Template ([info][templates]) ## Template ([info][templates])
@ -67,6 +67,6 @@ import Config from "@site/src/components/Config.js";
| `.Full` | `string` | will output `Artist - Track` | | `.Full` | `string` | will output `Artist - Track` |
| `.Icon` | `string` | icon (based on `.Status`) | | `.Icon` | `string` | icon (based on `.Status`) |
[templates]: /docs/configuration/templates [templates]: configuration/templates.mdx
[lastfm]: https://www.last.fm [lastfm]: https://www.last.fm
[api-key]: https://www.last.fm/api/account/create [api-key]: https://www.last.fm/api/account/create

View file

@ -25,17 +25,17 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the lua version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the lua version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.lua`, `*.rockspec` files or the `lua` folder are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `preferred_executable` | `string` | the preferred executable to use when fetching the version<ul><li>`lua`: the Lua executable (**default**)</li><li>`luajit`: the LuaJIT executable</li></ul> | | `preferred_executable` | `string` | `lua` | the preferred executable to use when fetching the version<ul><li>`lua`: the Lua executable (**default**)</li><li>`luajit`: the LuaJIT executable</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.lua, *.rockspec` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -33,10 +33,10 @@ import Config from "@site/src/components/Config.js";
As doing Mercurial (hg) calls can slow down the prompt experience, we do not fetch information by default. As doing Mercurial (hg) calls can slow down the prompt experience, we do not fetch information by default.
You can set the following properties to `true` to enable fetching additional information (and populate the template). You can set the following properties to `true` to enable fetching additional information (and populate the template).
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------- | :-----------------: | :-----: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` | | `fetch_status` | `boolean` | `false` | fetch the local changes |
| `status_formats` | `map[string]string` | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. Defaults to an empty map. | | `status_formats` | `map[string]string` | | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -57,11 +57,11 @@ Or display in mmol/l (instead of the default mg/dl) with the following template:
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------- | :------: | :-----: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `url` | `string` | Your Nightscout URL, including the full path to entries.json AND count=1 AND token. Example above. You'll know this works if you can curl it yourself and get a single value. - defaults to `` | | `url` | `string` | | Your Nightscout URL, including the full path to entries.json AND count=1 AND token. Example above. You'll know this works if you can curl it yourself and get a single value |
| `http_timeout` | `int` | How long do you want to wait before you want to see your prompt more than your sugar? I figure a half second is a good default - defaults to 500ms | | `http_timeout` | `int` | `500` | in milliseconds - how long do you want to wait before you want to see your prompt more than your sugar? I figure a half second is a good default |
| `cache_timeout` | `int` | in minutes - How long do you want your numbers cached? - defaults to 5 min | | `cache_timeout` | `int` | `5` | in minutes - how long do you want your numbers cached? |
:::info :::info
You can change the icons for trend, put the trend elsewhere, add text, however you like! You can change the icons for trend, put the trend elsewhere, add text, however you like!

View file

@ -25,19 +25,19 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------------- | :--------: | :--------------------------------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the Node.js version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the Node.js version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: The segment is always displayed</li><li>`files`: The segment is only displayed when one of the following files is present (**default**):<ul><li>`*.js`</li><li>`*.ts`</li><li>`package.json`</li><li>`.nvmrc`</li><li>`pnpm-workspace.yaml`</li><li>`.pnpmfile.cjs`</li><li>`.vue`</li></ul></li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `fetch_package_manager` | `boolean` | define if the current project uses Yarn or NPM - defaults to `false` | | `fetch_package_manager` | `boolean` | `false` | define if the current project uses Yarn or NPM |
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF011B` | | `yarn_icon` | `string` | `\uF011B` | the icon/text to display when using Yarn |
| `npm_icon` | `string` | the icon/text to display when using NPM - defaults to ` \uE71E` | | `npm_icon` | `string` | `\uE71E` | the icon/text to display when using NPM |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.js, *.ts, package.json, .nvmrc, pnpm-workspace.yaml, .pnpmfile.cjs, .vue` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :-------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `fetch_version` | `boolean` | `true` | fetch the NPM version |
| `fetch_version` | `boolean` | fetch the NPM version - defaults to `true` | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `package.json` or `package-lock.json` file are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `package.json, package-lock.json` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `ng` | | `fetch_version` | `boolean` | `true` | fetch the active version or not |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `workspace.json` or `nx.json` file is present (**default**)</li></ul> | | `missing_command_text` | `string` | | text to display when the command is missing |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `workspace.json, nx.json` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -24,15 +24,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :-----------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the ocaml version (`ocaml -version`) - defaults to `true` | | `fetch_version` | `boolean` | `true` | display the ocaml version (`ocaml -version`) |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.rs`, `Cargo.toml` or `Cargo.lock` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.ml, *.mli, dune, dune-project, dune-workspace` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -55,4 +56,5 @@ import Config from "@site/src/components/Config.js";
| `.Prerelease` | `string` | channel name | | `.Prerelease` | `string` | channel name |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[go-text-template]: https://golang.org/pkg/text/template/
[templates]: /docs/configuration/templates [templates]: /docs/configuration/templates

View file

@ -25,34 +25,34 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------------- | --------- | ------------------------------------------------------------------------- | | --------------------- | :-------: | :------: | --------------------------------------------------- |
| `macos` | `string` | the string to use for macOS - defaults to `\uF179` | | `macos` | `string` | `\uF179` | the string to use for macOS |
| `linux` | `string` | the icon to use for Linux - defaults to `\uF17C` | | `linux` | `string` | `\uF17C` | the icon to use for Linux |
| `windows` | `string` | the icon to use for Windows - defaults to `\uE62A` | | `windows` | `string` | `\uE62A` | the icon to use for Windows |
| `display_distro_name` | `boolean` | display the distro name or icon (for WSL and Linux) - defaults to `false` | | `display_distro_name` | `boolean` | `false` | display the distro name or icon (for WSL and Linux) |
| `alma` | `string` | the icon to use for Alma - defaults to `\uF31D` | | `alma` | `string` | `\uF31D` | the icon to use for Alma |
| `alpine` | `string` | the icon to use for Alpine - defaults to `\uF300` | | `alpine` | `string` | `\uF300` | the icon to use for Alpine |
| `aosc` | `string` | the icon to use for Aosc - defaults to `\uF301` | | `aosc` | `string` | `\uF301` | the icon to use for Aosc |
| `arch` | `string` | the icon to use for Arch - defaults to `\uF303` | | `arch` | `string` | `\uF303` | the icon to use for Arch |
| `centos` | `string` | the icon to use for Centos - defaults to `\uF304` | | `centos` | `string` | `\uF304` | the icon to use for Centos |
| `coreos` | `string` | the icon to use for Coreos - defaults to `\uF305` | | `coreos` | `string` | `\uF305` | the icon to use for Coreos |
| `debian` | `string` | the icon to use for Debian - defaults to `\uF306` | | `debian` | `string` | `\uF306` | the icon to use for Debian |
| `devuan` | `string` | the icon to use for Devuan - defaults to `\uF307` | | `devuan` | `string` | `\uF307` | the icon to use for Devuan |
| `raspbian` | `string` | the icon to use for Raspbian - defaults to `\uF315` | | `raspbian` | `string` | `\uF315` | the icon to use for Raspbian |
| `elementary` | `string` | the icon to use for Elementary - defaults to `\uF309` | | `elementary` | `string` | `\uF309` | the icon to use for Elementary |
| `fedora` | `string` | the icon to use for Fedora - defaults to `\uF30a` | | `fedora` | `string` | `\uF30a` | the icon to use for Fedora |
| `gentoo` | `string` | the icon to use for Gentoo - defaults to `\uF30d` | | `gentoo` | `string` | `\uF30d` | the icon to use for Gentoo |
| `mageia` | `string` | the icon to use for Mageia - defaults to `\uF310` | | `mageia` | `string` | `\uF310` | the icon to use for Mageia |
| `manjaro` | `string` | the icon to use for Manjaro - defaults to `\uF312` | | `manjaro` | `string` | `\uF312` | the icon to use for Manjaro |
| `mint` | `string` | the icon to use for Mint - defaults to `\uF30e` | | `mint` | `string` | `\uF30e` | the icon to use for Mint |
| `nixos` | `string` | the icon to use for Nixos - defaults to `\uF313` | | `nixos` | `string` | `\uF313` | the icon to use for Nixos |
| `opensuse` | `string` | the icon to use for Opensuse - defaults to `\uF314` | | `opensuse` | `string` | `\uF314` | the icon to use for Opensuse |
| `redhat` | `string` | the icon to use for Redhat - defaults to `\uF316` | | `redhat` | `string` | `\uF316` | the icon to use for Redhat |
| `rocky` | `string` | the icon to use for Rocky - defaults to `\uF32B` | | `rocky` | `string` | `\uF32B` | the icon to use for Rocky |
| `sabayon` | `string` | the icon to use for Sabayon - defaults to `\uF317` | | `sabayon` | `string` | `\uF317` | the icon to use for Sabayon |
| `slackware` | `string` | the icon to use for Slackware - defaults to `\uF319` | | `slackware` | `string` | `\uF319` | the icon to use for Slackware |
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to `\uF31b` | | `ubuntu` | `string` | `\uF31b` | the icon to use for Ubuntu |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -37,16 +37,15 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------- | :-------: | :----------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `api_key` | `string` | Your API key from [Open Weather Map][owm]. Can also be set using the `POSH_OWM_API_KEY` environment variable. | | `api_key` | `string` | `.` | Your API key from [Open Weather Map][owm]. Can also be set using the `POSH_OWM_API_KEY` environment variable. |
| `latitude` | `float64` | The latitude of the requested location. | | `latitude` | `float64` | `91` | The latitude of the requested location, valid between -90 and 90 |
| `longitude` | `float64` | The longitude of the requested location. | | `longitude` | `float64` | `181` | The longitude of the requested location, valid between -180 and 180 |
| `location` | `string` | The requested location. Formatted as \<City,STATE,COUNTRY_CODE\>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes - defaults to `DE BILT,NL` | | `location` | `string` | `De Bilt,NL` | The requested location interpretted only if valid coordinates aren't given. Formatted as \<City,STATE,COUNTRY_CODE\>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes |
| `units` | `string` | Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) - defaults to `standard` | | `units` | `string` | `standard` | Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) |
| `http_timeout` | `int` | The default timeout for http request is 20ms. | | `http_timeout` | `int` | `20` | in milliseconds, the timeout for http request |
| `cache_timeout` | `int` | The default timeout for request caching is 10m. A value of 0 disables the cache. | | `cache_timeout` | `int` | `10` | in minutes, the timeout for request caching. A value of 0 disables the cache. |
| `template` | `string` | A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to `{{.Weather}} ({{.Temperature}}{{.UnitIcon}})` |
### Specifying Location ### Specifying Location

View file

@ -30,25 +30,25 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------- | | --------------------------- | :--------: | :--------: | ---------------------------------------------------------------------------------------------------------------- |
| `folder_separator_icon` | `string` | the symbol to use as a separator between folders - defaults to platform path separator | | `folder_separator_icon` | `string` | `/` | the symbol to use as a separator between folders |
| `folder_separator_template` | `string` | the [template][templates] to use as a separator between folders - defaults to `` | | `folder_separator_template` | `string` | | the [template][templates] to use as a separator between folders |
| `home_icon` | `string` | the icon to display when at `$HOME` - defaults to `~` | | `home_icon` | `string` | `~` | the icon to display when at `$HOME` |
| `folder_icon` | `string` | the icon to use as a folder indication - defaults to `..` | | `folder_icon` | `string` | `..` | the icon to use as a folder indication |
| `windows_registry_icon` | `string` | the icon to display when in the Windows registry - defaults to `\uE0B1` | | `windows_registry_icon` | `string` | `\uF013` | the icon to display when in the Windows registry |
| `style` | `enum` | how to display the current path | | `style` | `enum` | `agnoster` | how to display the current path |
| `mixed_threshold` | `number` | the maximum length of a path segment that will be displayed when using `Mixed` - defaults to `4` | | `mixed_threshold` | `number` | `4` | the maximum length of a path segment that will be displayed when using `Mixed` |
| `max_depth` | `number` | maximum path depth to display before shortening when using `agnoster_short`, defaults to `1` | | `max_depth` | `number` | `1` | maximum path depth to display before shortening when using `agnoster_short` |
| `max_width` | `number` | maximum path length to display when using `powerlevel` - defaults to `0` | | `max_width` | `number` | `0` | maximum path length to display when using `powerlevel` |
| `hide_root_location` | `boolean` | hides the root location if it doesn't fit in the last `max_depth` folders, when using `agnoster_short` - defaults to `false` | | `hide_root_location` | `boolean` | `false` | ides the root location if it doesn't fit in the last `max_depth` folders, when using `agnoster_short` |
| `cycle` | `[]string` | a list of color overrides to cycle through to colorize the individual path folders, e.g. `[ "#ffffff,#111111" ]` | | `cycle` | `[]string` | | a list of color overrides to cycle through to colorize the individual path folders, e.g. `[ "#ffffff,#111111" ]` |
| `cycle_folder_separator` | `boolean` | colorize the `folder_separator_icon` as well when using a cycle - defaults to `false` | | `cycle_folder_separator` | `boolean` | `false` | colorize the `folder_separator_icon` as well when using a cycle |
| `folder_format` | `string` | format to use on individual path folders - defaults to `%s` | | `folder_format` | `string` | `%s` | format to use on individual path folders |
| `edge_format` | `string` | format to use on the first and last folder of the path - defaults to `%s` | | `edge_format` | `string` | `%s` | format to use on the first and last folder of the path |
| `left_format` | `string` | format to use on the firstfolder of the path - defaults to `edge_format` | | `left_format` | `string` | `%s` | format to use on the firstfolder of the path - defaults to `edge_format` |
| `right_format` | `string` | format to use on the last folder of the path - defaults to `edge_format` | | `right_format` | `string` | `%s` | format to use on the last folder of the path - defaults to `edge_format` |
| `gitdir_format` | `string` | format to use for a git root directory - defaults to `` | | `gitdir_format` | `string` | | format to use for a git root directory |
## Mapped Locations ## Mapped Locations
@ -56,10 +56,10 @@ Allows you to override a location with an icon/string.
It validates if the current path **starts with the specific elements** and replaces it with the icon/string if there's a match. It validates if the current path **starts with the specific elements** and replaces it with the icon/string if there's a match.
To avoid issues with nested overrides, Oh My Posh will sort the list of mapped locations before doing a replacement. To avoid issues with nested overrides, Oh My Posh will sort the list of mapped locations before doing a replacement.
| Name | Type | Description | | Name | Type | Default | Description |
| -------------------------- | --------- | -------------------------------------------------------------------------------------------------------- | | -------------------------- | :-------: | :-----: | ---------------------------------------------------------------------------------------- |
| `mapped_locations_enabled` | `boolean` | replace known locations in the path with the replacements before applying the style - defaults to `true` | | `mapped_locations_enabled` | `boolean` | `true` | replace known locations in the path with the replacements before applying the style |
| `mapped_locations` | `object` | custom glyph/text for specific paths. Works regardless of the `mapped_locations_enabled` | | `mapped_locations` | `object` | | custom glyph/text for specific paths. Works regardless of the `mapped_locations_enabled` |
setting. setting.

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the perl version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the perl version |
| `missing_command_text` | `string` | text to display when the perl command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`.perl-version`</li><li>`*.pl`</li><li>`*.p`</li><li>`*.t`</li></ul></li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.pl, *.pm, *.t, .perl-version` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the php version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the php version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`*.php`</li><li>`composer.json`</li><li>`composer.lock`</li><li>`.php-version`</li><li>`blade.php`</li></ul></li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.php, .php-version, composer.json, composer.lock` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -50,28 +50,28 @@ by leaving a like!
As doing multiple `cm` calls can slow down the prompt experience, we do not fetch information by default. As doing multiple `cm` calls can slow down the prompt experience, we do not fetch information by default.
You can set the following property to `true` to enable fetching additional information (and populate the template). You can set the following property to `true` to enable fetching additional information (and populate the template).
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------- | :-----------------: | :-----: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` | | `fetch_status` | `boolean` | `false` | fetch the local changes |
| `status_formats` | `map[string]string` | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. Defaults to an empty map. | | `status_formats` | `map[string]string` | | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides |
### Icons ### Icons
#### Branch #### Branch
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------- | -------- | -------------------------------------------------------------------------------------------- | | ------------------- | :------: | :------: | -------------------------------------------------------------------------- |
| `branch_icon` | `string` | the icon to use in front of the git branch name - defaults to `\uE0A0 ` | | `branch_icon` | `string` | `\uE0A0` | the icon to use in front of the git branch name |
| `full_branch_path` | `bool` | display the full branch path: `_/main/fix-001_` instead of `_fix-001_` - defaults to `true` | | `full_branch_path` | `bool` | `true` | display the full branch path: `_/main/fix-001_` instead of `_fix-001_` |
| `branch_max_length` | `int` | the max length for the displayed branch name where `0` implies full length - defaults to `0` | | `branch_max_length` | `int` | `0` | the max length for the displayed branch name where `0` implies full length |
| `truncate_symbol` | `string` | the icon to display when a branch name is truncated - defaults to empty | | `truncate_symbol` | `string` | | the icon to display when a branch name is truncated |
#### Selector #### Selector
| Name | Type | Description | | Name | Type | Default | Description |
| ------------- | -------- | ------------------------------------------------------------------------------------- | | ------------- | :------: | :------: | -------------------------------------------------------------- |
| `commit_icon` | `string` | icon/text to display before the commit context (detached HEAD) - defaults to `\uF417` | | `commit_icon` | `string` | `\uF417` | icon/text to display before the commit context (detached HEAD) |
| `tag_icon` | `string` | icon/text to display before the tag context - defaults to `\uF412` | | `tag_icon` | `string` | `\uF412` | icon/text to display before the tag context |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -37,9 +37,9 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------- | --------- | --------------------------------------------- | | ---------------- | :-------: | :-----: | ----------------------- |
| `always_enabled` | `boolean` | always show the segment - defaults to `false` | | `always_enabled` | `boolean` | `false` | always show the segment |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -31,7 +31,7 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Default | Description | | Name | Type | Default | Description |
| ------------- | --------- | ------- | ---------------------------------------------------------------------------------- | | ------------- | :-------: | :-----: | ---------------------------------------------------------------------------------- |
| `fetch_stack` | `boolean` | `false` | fetch the current stack name | | `fetch_stack` | `boolean` | `false` | fetch the current stack name |
| `fetch_about` | `boolean` | `false` | fetch the URL and user for the current stask. Requires `fetch_stack` set to `true` | | `fetch_about` | `boolean` | `false` | fetch the URL and user for the current stask. Requires `fetch_stack` set to `true` |

View file

@ -26,19 +26,19 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_virtual_env` | `boolean` | fetch the name of the virtualenv or not - defaults to `true` | | `fetch_virtual_env` | `boolean` | `true` | fetch the name of the virtualenv or not |
| `display_default` | `boolean` | show the name of the virtualenv when it's default (`system`, `base`) or not - defaults to `true` | | `display_default` | `boolean` | `true` | show the name of the virtualenv when it's default (`system`, `base`) or not |
| `fetch_version` | `boolean` | fetch the python version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the python version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present:<ul><li>`*.py`</li><li>`*.ipynb`</li><li>`pyproject.toml`</li><li>`venv.bak`</li><li>`venv`</li><li>`.venv`</li></ul></li><li>`environment`: the segment is only displayed when a virtual env is present (**default**)</li><li>`context`: the segment is only displayed when either `environment` or `files` is active</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.py, *.ipynb, pyproject.toml, venv.bak` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
| `folder_name_fallback` | `boolean` | instead of `venv` or `.venv` (case sensitive), use the parent folder name as the virtual environment's name or not - defaults to `true` | | `folder_name_fallback` | `boolean` | `true` | instead of `venv` or `.venv` (case sensitive), use the parent folder name as the virtual environment's name or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -26,16 +26,17 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `fetch_version` | `boolean` | fetch the NPM version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the NPM version |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `fetch_dependencies` | `boolean` | fetch the version number of the `vite` and `@quasar/app-vite` dependencies if present - defaults to `false` | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `fetch_dependencies` | `boolean` | `false` | fetch the version number of the `vite` and `@quasar/app-vite` dependencies if present |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `quasar.config, quasar.config.js` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :----------------------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the R version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the R version or not |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`*.R`</li><li>`*.Rmd`</li><li>`*.Rsx`</li><li>`*.Rda`</li><li>`*.Rd`</li><li>`*.Rproj`</li><li>`.Rproj.user`</li></ul></li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.R, *.Rmd, *.Rsx, *.Rda, *.Rd, *.Rproj, .Rproj.user` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -24,15 +24,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `ng` | | `fetch_version` | `boolean` | `true` | fetch the react version |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `package.json` file is present (**default**)</li></ul> | | `missing_command_text` | `string` | | text to display when the command is missing |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `package.json` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the ruby version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the ruby version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.rb`, `Gemfile` or `Rakefile` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.rb, Rakefile, Gemfile` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -52,4 +53,5 @@ import Config from "@site/src/components/Config.js";
| `.Full` | `string` | the full version | | `.Full` | `string` | the full version |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[go-text-template]: https://golang.org/pkg/text/template/
[templates]: /docs/configuration/templates [templates]: /docs/configuration/templates

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------------------- | :--------: | :----------------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the rust version (`rustc --version`) - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the rust version (`rustc --version`) |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.rs`, `Cargo.toml` or `Cargo.lock` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `*.rs, Cargo.toml, Cargo.lock` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])
@ -56,4 +57,5 @@ import Config from "@site/src/components/Config.js";
| `.Prerelease` | `string` | channel name | | `.Prerelease` | `string` | channel name |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[go-text-template]: https://golang.org/pkg/text/template/
[templates]: /docs/configuration/templates [templates]: /docs/configuration/templates

View file

@ -30,11 +30,11 @@ import Config from "@site/src/components/Config.js";
### Fetching information ### Fetching information
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------- | :-----------------: | :-----: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fetch_status` | `boolean` | fetch the local changes - defaults to `true` | | `fetch_status` | `boolean` | `true` | fetch the local changes - defaults to |
| `native_fallback` | `boolean` | when set to `true` and `sl.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native sapling executable to fetch data. Not all information can be displayed in this case. Defaults to `false` | | `native_fallback` | `boolean` | `false` | when set to `true` and `sl.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native sapling executable to fetch data. Not all information can be displayed in this case |
| `status_formats` | `map[string]string` | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. Defaults to an empty map. | | `status_formats` | `map[string]string` | | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -27,7 +27,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
|`mapped_shell_names`|`object`|custom glyph/text to use in place of specified shell names (case-insensitive)| | Name | Type | Default | Description |
| -------------------- | :------: | :-----: | ----------------------------------------------------------------------------- |
| `mapped_shell_names` | `object` | | custom glyph/text to use in place of specified shell names (case-insensitive) |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -22,9 +22,9 @@ Display current Sitecore environment. Will not be active when sitecore.json and
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------- | --------- | -------------------------------------------------------------------------------------------------- | | ----------------- | :-------: | :-----: | ------------------------------------------------------------------------------- |
| `display_default` | `boolean` | display the segment or not when the Sitecore environment name matches `default` - defaults to true | | `display_default` | `boolean` | `true` | display the segment or not when the Sitecore environment name matches `default` |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -36,11 +36,11 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------------- | -------- | ------------------------------------------------------ | | -------------- | :------: | :-------: | ------------------------------ |
| `playing_icon` | `string` | text/icon to show when playing - defaults to `\uE602 ` | | `playing_icon` | `string` | `\uE602 ` | text/icon to show when playing |
| `paused_icon` | `string` | text/icon to show when paused - defaults to `\uF8E3 ` | | `paused_icon` | `string` | `\uF8E3 ` | text/icon to show when paused |
| `stopped_icon` | `string` | text/icon to show when stopped - defaults to `\uF04D ` | | `stopped_icon` | `string` | `\uF04D` | text/icon to show when stopped |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -29,11 +29,11 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ------------------ | --------- | ---------------------------------------------------------------------------------------------------- | | ------------------ | :-------: | :-----------: | -------------------------------------------------------------------- |
| `always_enabled` | `boolean` | always show the status - defaults to `false` | | `always_enabled` | `boolean` | `false` | always show the status |
| `status_template` | `string` | [template][status-template] used to render an individual status code - defaults to `{{ .Code }}` | | `status_template` | `string` | `{{ .Code }}` | [template][status-template] used to render an individual status code |
| `status_separator` | `string` | used to separate multiple statuses when `$PIPESTATUS` is available - defaults to <code>&#124;</code> | | `status_separator` | `string` | `\|` | used to separate multiple statuses when `$PIPESTATUS` is available |
[colors]: /docs/configuration/colors [colors]: /docs/configuration/colors

View file

@ -58,18 +58,18 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------------- | -------- | --------------------------------------------------------------------------------------------------------------- | | ----------------------- | :------: | :------: | ------------------------------------------------------------------------------------------------------------- |
| `access_token` | `string` | token from Strava login, see login link in section above. | | `access_token` | `string` | | token from Strava login, see login link in section above. |
| `refresh_token` | `string` | token from Strava login, see login link in section above. | | `refresh_token` | `string` | | token from Strava login, see login link in section above. |
| `expires_in` | `int` | the default timeout of the token from the Strava login | | `expires_in` | `int` | `0` | the default timeout of the token from the Strava login |
| `http_timeout` | `int` | how long do you want to wait before you want to see your prompt more than your strava data? - defaults to 500ms | | `http_timeout` | `int` | `500` | in milliseconds - how long do you want to wait before you want to see your prompt more than your strava data? |
| `cache_timeout` | `int` | in minutes - How long do you want your Strava data cached? - defaults to 5 min | | `cache_timeout` | `int` | `5` | in minutes - How long do you want your Strava data cached? |
| `ride_icon` | `string` | defaults to `\uf206` | | `ride_icon` | `string` | `\uf206` | |
| `run_icon` | `string` | defaults to `\ue213` | | `run_icon` | `string` | `\ue213` | |
| `skiing_icon` | `string` | defaults to `\ue213` | | `skiing_icon` | `string` | `\ue213` | |
| `workout_icon` | `string` | defaults to `\ue213` | | `workout_icon` | `string` | `\ue213` | |
| `unknown_activity_icon` | `string` | defaults to `\ue213` | | `unknown_activity_icon` | `string` | `\ue213` | |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -33,11 +33,11 @@ import Config from "@site/src/components/Config.js";
As doing multiple [subversion][svn] calls can slow down the prompt experience, we do not fetch information by default. As doing multiple [subversion][svn] calls can slow down the prompt experience, we do not fetch information by default.
You can set the following properties to `true` to enable fetching additional information (and populate the template). You can set the following properties to `true` to enable fetching additional information (and populate the template).
| Name | Type | Description | | Name | Type | Default | Description |
| ----------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------------- | :-----------------: | :-----: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` | | `fetch_status` | `boolean` | `false` | fetch the local changes |
| `native_fallback` | `boolean` | when set to `true` and `svn.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn executable to fetch data. Not all information can be displayed in this case. Defaults to `false`. | | `native_fallback` | `boolean` | `false` | when set to `true` and `svn.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn executable to fetch data. Not all information can be displayed in this case |
| `status_formats` | `map[string]string` | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides. Defaults to an empty map. | | `status_formats` | `map[string]string` | | a key, value map allowing to override how individual status items are displayed. For example, `"status_formats": { "Added": "Added: %d" }` will display the added count as `Added: 1` instead of `+1`. See the [Status](#status) section for available overrides |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :----------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the swift version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the swift version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.swift` or `*.SWIFT` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.swift, *.SWIFT` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -26,9 +26,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ----------- | ----- | ------------------------------------------------------- | | ----------- | :---: | :-----: | --------------------------------------- |
| `Precision` | `int` | The precision used for any float values - defaults to 2 | | `Precision` | `int` | `2` | The precision used for any float values |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -27,9 +27,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | --------- | -------------------------------------------------------------------------------------------------------- | | --------------- | :-------: | :-----: | ---------------------------------------------------------------------------------- |
| `fetch_version` | `boolean` | fetch the version information from `versions.tf`, `main.tf` or `terraform.tfstate` - defaults to `false` | | `fetch_version` | `boolean` | `false` | fetch the version information from `versions.tf`, `main.tf` or `terraform.tfstate` |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,9 +23,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ------------- | -------- | ----------------------------------------------------------------------------- | | ------------- | :------: | :--------: | ---------------------------------------------------- |
| `time_format` | `string` | format to use, follows the [golang standard][format] - defaults to `15:04:05` | | `time_format` | `string` | `15:04:05` | format to use, follows the [golang standard][format] |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -26,16 +26,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the UI5 tooling version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the ui5tooling version |
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder</li><li>`context`: the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder or it has been found in the parent folders (check up to 4 levels) (**default**) </li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*ui5*.y*ml` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -36,9 +36,9 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | -------- | ----------------------------------------------- | | -------------- | :---: | :-----: | ---------------------------------------------- |
| `http_timeout` | `int` | The default timeout for http request is 2000ms. | | `http_timeout` | `int` | `2000` | in milliseconds - the timeout for http request |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -23,9 +23,9 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | ----- | --------------------------------------------------------------------------------------------- | | --------------- | :---: | :-----: | ------------------------------------------------------------------------------------- |
| `cache_timeout` | `int` | in minutes - How long to wait before checking for a new version. Default is 10080 (one week). | | `cache_timeout` | `int` | `10080` | in minutes - how long to wait before checking for a new version. Default is one week. |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,16 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :-------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | fetch the flutter version - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the vala version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.vala` files are present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `extensions` | `[]string` | `*.vala` | allows to override the default list of file extensions to validate |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -32,11 +32,11 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| --------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------- | :-------: | :-----: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `url` | `string` | The Wakatime [summaries][wk-summaries] URL, including the API key. Example above. Defaults to ``. | | `url` | `string` | | The Wakatime [summaries][wk-summaries] URL, including the API key. Example above. |
| `http_timeout` | `int` | The time (_in milliseconds_, `ms`) it takes to consider an http request as **timed-out**. Defaults to `20`. If no segment is shown, try increasing this timeout. | | `http_timeout` | `int` | `20` | The time (_in milliseconds_, `ms`) it takes to consider an http request as **timed-out**. If no segment is shown, try increasing this timeout. |
| `cache_timeout` | `int` | The time (_in minutes_, `m`) it takes to invalidate/renew the Wakatime segment output. Defaults to `10`. Setting this to `0` disables the cache and requests to the API everytime the user presses the Enter key. | | `cache_timeout` | `int` | `10` | The time (_in minutes_, `m`) it takes to invalidate/renew the Wakatime segment output. Setting this to `0` disables the cache and requests to the API everytime the user presses the Enter key. |
### Dynamic API Key ### Dynamic API Key

View file

@ -35,10 +35,10 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | ---------- | :------: | :-----: | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `path` | `string` | registry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path | | `path` | `string` | | registry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path |
| `fallback` | `string` | the value to fall back to if no entry is found | | `fallback` | `string` | | the value to fall back to if no entry is found |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -44,13 +44,13 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | | ---------------- | :------: | :-----: | --------------------------------------------------------------------------------------------- |
| `access_token` | `string` | token from Withings login, see login link in section above. | | `access_token` | `string` | | token from Withings login, see login link in section above. |
| `refresh_token` | `string` | token from Withings login, see login link in section above. | | `refresh_token` | `string` | | token from Withings login, see login link in section above. |
| `expires_in` | `int` | the default timeout of the token from the Withings login | | `expires_in` | `int` | `0` | the default timeout of the token from the Withings login |
| `http_timeout` | `int` | how long do you want to wait before you want to see your prompt more than your Withings data? - defaults to 500ms | | `http_timeout` | `int` | `500` | how long do you want to wait before you want to see your prompt more than your Withings data? |
| `cache_timeout` | `int` | in minutes - How long do you want your Withings data cached? - defaults to 5 min | | `cache_timeout` | `int` | `5` | in minutes - How long do you want your Withings data cached? |
## Template ([info][templates]) ## Template ([info][templates])

View file

@ -25,15 +25,16 @@ import Config from "@site/src/components/Config.js";
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------- | :--------: | :---------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` | | `home_enabled` | `boolean` | `false` | display the segment in the HOME folder or not |
| `fetch_version` | `boolean` | display the xmake version (`xmake --version`) - defaults to `true` | | `fetch_version` | `boolean` | `true` | fetch the xmake version |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty | | `missing_command_text` | `string` | | text to display when the command is missing |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `xmake.lua` file is present (**default**)</li></ul> | | `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
| `extensions` | `[]string` | allows to override the default list of file extensions to validate | | `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
| `folders` | `[]string` | allows to override the list of folder names to validate | | `extensions` | `[]string` | `xmake.lua` | allows to override the default list of file extensions to validate |
| `cache_version` | `boolean` | cache the executable's version or not - defaults to `false` | | `folders` | `[]string` | | allows to override the list of folder names to validate |
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
## Template ([into][templates]) ## Template ([into][templates])
@ -55,4 +56,5 @@ import Config from "@site/src/components/Config.js";
| `.Patch` | `string` | patch number | | `.Patch` | `string` | patch number |
| `.Error` | `string` | error encountered when fetching the version string | | `.Error` | `string` | error encountered when fetching the version string |
[templates]: /docs/configuration/templates [go-text-template]: https://golang.org/pkg/text/template/
[templates]: configuration/templates.mdx

View file

@ -32,12 +32,12 @@ import Config from '@site/src/components/Config.js';
## Properties ## Properties
| Name | Type | Description | | Name | Type | Default | Description |
| -------------- | -------- | --------------------------------------------------------------------- | | -------------- | :------: | :----------------------: | -------------------------------- |
| `playing_icon` | `string` | text/icon to show when playing - defaults to `\uE602 ` | | `playing_icon` | `string` | `\uE602 ` | text/icon to show when playing |
| `paused_icon` | `string` | text/icon to show when paused - defaults to `\uF8E3 ` | | `paused_icon` | `string` | `\uF8E3 ` | text/icon to show when paused |
| `stopped_icon` | `string` | text/icon to show when paused - defaults to `\uF04D ` | | `stopped_icon` | `string` | `\uF04D ` | text/icon to show when stopped |
| `api_url` | `string` | the YTMDA Remote Control API URL- defaults to `http://127.0.0.1:9863` | | `api_url` | `string` | `http://127.0.0.1:13091` | the YTMDA Remote Control API URL |
## Template ([info][templates]) ## Template ([info][templates])