docs: display_mode 'never' removed

This commit is contained in:
lnu 2021-01-01 08:00:08 +01:00 committed by Jan De Dobbeleer
parent 621cb8e4bc
commit 9822227a5e
8 changed files with 9 additions and 12 deletions

View file

@ -280,7 +280,7 @@ Oh my Posh mainly supports three different color types being
- Typical [hex colors][hexcolors] (for example `#CB4B16`). - Typical [hex colors][hexcolors] (for example `#CB4B16`).
- The `transparent` keyword which can be used to create either a transparent foreground override - The `transparent` keyword which can be used to create either a transparent foreground override
or transparent background color using the segement's foreground property. or transparent background color using the segment's foreground property.
- 16 [ANSI color names][ansicolors]. - 16 [ANSI color names][ansicolors].
These include 8 basic ANSI colors and `default`: These include 8 basic ANSI colors and `default`:

View file

@ -25,7 +25,8 @@ This installs a couple of things:
- `oh-my-posh-wsl` - Linux executable, added to your `$PATH` for use in the WSL - `oh-my-posh-wsl` - Linux executable, added to your `$PATH` for use in the WSL
- `themes` - The latest Oh my Posh themes - `themes` - The latest Oh my Posh themes
If you want to use a standard theme, you can find them in `~\scoop\apps\oh-my-posh\current\themes\`, referencing them as such If you want to use a standard theme, you can find them in `~\scoop\apps\oh-my-posh\current\themes\`,
referencing them as such
will always keep them compatible with the binary when updating Oh my Posh. will always keep them compatible with the binary when updating Oh my Posh.
## Update ## Update

View file

@ -30,4 +30,3 @@ Display the currently active golang version when a folder contains `.go` files.
- display_mode: `string` - determines when the segment is displayed - display_mode: `string` - determines when the segment is displayed
- `always`: The segment is always displayed - `always`: The segment is always displayed
- `context`: The segment is only displayed when *.go or go.mod files are present (default) - `context`: The segment is only displayed when *.go or go.mod files are present (default)
- `never`: The segement is hidden

View file

@ -30,4 +30,3 @@ Display the currently active julia version when a folder contains `.jl` files.
- display_mode: `string` - determines when the segment is displayed - display_mode: `string` - determines when the segment is displayed
- `always`: The segment is always displayed - `always`: The segment is always displayed
- `context`: The segment is only displayed when *.jl files are present (default) - `context`: The segment is only displayed when *.jl files are present (default)
- `never`: The segement is hidden

View file

@ -30,4 +30,3 @@ Display the currently active node version when a folder contains `.js` or `.ts`
- display_mode: `string` - determines when the segment is displayed - display_mode: `string` - determines when the segment is displayed
- `always`: The segment is always displayed - `always`: The segment is always displayed
- `context`: The segment is only displayed when *.js, *.ts or package.json files are present (default) - `context`: The segment is only displayed when *.js, *.ts or package.json files are present (default)
- `never`: The segement is hidden

View file

@ -32,4 +32,3 @@ Supports conda, virtualenv and pyenv.
- display_mode: `string` - determines when the segment is displayed - display_mode: `string` - determines when the segment is displayed
- `always`: The segment is always displayed - `always`: The segment is always displayed
- `context`: The segment is only displayed when *.py or *.ipynb files are present (default) - `context`: The segment is only displayed when *.py or *.ipynb files are present (default)
- `never`: The segement is hidden

View file

@ -17,7 +17,7 @@ type language struct {
const ( const (
// DisplayModeProperty sets the display mode (always, when_in_context, never) // DisplayModeProperty sets the display mode (always, when_in_context, never)
DisplayModeProperty Property = "display_mode" DisplayModeProperty Property = "display_mode"
// DisplayModeAlways displays the segement always // DisplayModeAlways displays the segment always
DisplayModeAlways string = "always" DisplayModeAlways string = "always"
// DisplayModeContext displays the segment when the current folder contains certain extensions // DisplayModeContext displays the segment when the current folder contains certain extensions
DisplayModeContext string = "context" DisplayModeContext string = "context"