Commit graph

67 commits

Author SHA1 Message Date
Jan De Dobbeleer f47da9592f feat(exit): implement pipestatus
BREAKING CHANGE: exit segment is now called status segment.

The exit keyword is now deprecated and will be removed in a future
release. Please use the status keyword instead:

```diff
"segments": {
    {
-     "type": "exit"
+     "type": "status"
    }
}
```

Additionally, the status segment configuration has changed to support
$PIPESTATUS. You can include a status template to customize the
rendering of each individual status code (supported in fish, zsh and
bash).

```json
"segments": {
    {
        "type": "status",
        "properties": {
            "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}",
            "status_separator": " "
        }
    }
}
```

In case no $PIPESTATUS is available, the status segment will fall back
to the exit code of the last command using the status template
for rendering.

The `{{ .Meaning }}` property has been marked as deprecated and can be
replaced with `{{ reason .Code }}`, allowing it to be reused in
cross segment templates.

resolves #4070
2023-07-24 11:46:33 +02:00
Jan De Dobbeleer d005bae4f4 feat: add version -v
resolves #4014
2023-07-02 21:11:01 +02:00
Jan De Dobbeleer 2606031c76 fix(yaml): parse uint64 to int
resolves #3861
2023-05-17 20:18:18 +02:00
Jan De Dobbeleer c34e39c4ed fix(block): adjust trailing diamond color overrides
resolves #3850
2023-05-17 09:51:38 +02:00
Jan De Dobbeleer 98529e4a79
chore(social): remove mastodon and fix bluesky 2023-05-04 10:36:07 +02:00
Jan De Dobbeleer 865281e844 chore: align dev build with prod 2023-02-28 20:13:20 +01:00
jan De Dobbeleer ae0c643d82 chore: remove config reference 2023-02-08 20:44:24 +01:00
jan De Dobbeleer 76c7ea536b fix(config): migrate glyphs correctly for all formats 2023-02-08 13:44:41 +01:00
Jan De Dobbeleer a172c7a5ef feat: migrate v3 Nerd Font glyphs 2023-01-27 15:18:43 +01:00
Jan De Dobbeleer 7dbc3c96ea fix(cycle): cycle in a loop 2023-01-11 13:49:46 +01:00
Jan De Dobbeleer edb3842db7 chore: remove local debug setting 2023-01-06 11:02:37 +01:00
Jan De Dobbeleer b5bb060641 fix(compare): support int64
resolves #3309
2023-01-05 21:00:22 +01:00
Jan De Dobbeleer 2cc768d522 chore(launch): remove default config reference 2022-11-24 11:42:08 +01:00
Jan De Dobbeleer 63bb1b4729 feat(cli): toggle segments on/off
resolves #3086
2022-11-17 20:58:00 +01:00
Jan De Dobbeleer 9e0244bc24 chore: launch API correctly 2022-07-12 20:53:09 +02:00
Jan De Dobbeleer 8c44eace50 revert: debug theme is json 2022-06-03 20:30:05 +02:00
ehawman-rosenberg f480533a7a feat(theme)!: migrate devious-diamonds to YAML
BREAKING CHANGE: Extension change from "json" to "yaml" necessitates changes in init params
2022-06-03 20:23:20 +02:00
Jan De Dobbeleer 7eff25cddc fix(image): do not break on overline
relates to #2312
2022-05-23 08:29:57 +02:00
Jan De Dobbeleer 3279821d0b feat(cli): get accent color 2022-05-22 19:31:15 +02:00
Jan De Dobbeleer e716d3040e
refactor: rename docs -> website 2022-05-13 08:19:35 +02:00
L. Yeung c742bff144 docs: revise some details 2022-05-08 18:50:45 +02:00
Jan De Dobbeleer 6cc4160ddf refactor: use default theme in debug 2022-05-06 12:28:48 +02:00
Jan De Dobbeleer 482c997413 feat: reference segments properties cross segment
resolves #2208
2022-05-06 12:28:48 +02:00
Jan De Dobbeleer 64196fe6ad fix: override config on init
resolves #2180
2022-04-28 21:01:43 +02:00
L. Yeung c37733e3ec refactor(pwsh): purify global scope and environment 2022-04-21 13:05:52 +02:00
Jan De Dobbeleer 8db4d47e45 fix: correct escape sequence replacement 2022-04-03 20:44:23 +02:00
Jan De Dobbeleer e1a1febc79 feat(pwsh): expose errorcode to transient prompt 2022-03-25 08:54:56 +01:00
lnu 96df24789d fix(cli): check for empty args(cache/get) 2022-03-21 06:48:46 +01:00
Jan De Dobbeleer 6e3c1af164 refactor(cli): isolate debug command 2022-03-16 17:26:40 +01:00
Jan De Dobbeleer 10d56a8551 refactor(cli): migrate to cobra 2022-03-12 23:05:57 +01:00
Jan De Dobbeleer 0d366149b9 feat: query all window titles for app info
resolves #1354
2022-03-06 19:28:35 +01:00
Jan De Dobbeleer a3a9b17f1e fix(cmd): insert executable name to avoid spaces in path
relates to #1852
2022-03-02 08:17:38 +01:00
Jan De Dobbeleer a0d4fc6cba feat: colorise filler 2022-02-12 18:48:08 +01:00
Jan De Dobbeleer 57d481c9b4 fix: parse error text when silent fail
resolves #1739
2022-02-10 19:48:08 +01:00
Jan De Dobbeleer 0373d2c507 feat(config): migrate deprecated keys 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer 0e056cd50d feat(template): hyperlink functions 2022-02-03 10:44:18 +01:00
Jan De Dobbeleer f512df208a feat: expose environment info to all templates 2022-01-13 20:15:04 +01:00
Jan De Dobbeleer d107f0af1c
docs: api debug settings 2022-01-09 20:24:47 +01:00
lnu d3c3dea1d7 feat(language): parameter for version detection
applied to angular segment to read version from package.json
2021-12-09 16:01:10 +01:00
Jan De Dobbeleer 89e2c28192 chore: docs run task 2021-11-30 08:28:27 +01:00
Jan De Dobbeleer 0ee320491d chore: add commit info to regular build 2021-11-27 13:39:40 +01:00
Jan De Dobbeleer 5730451965 chore: build on multiline commit message 2021-11-27 13:39:40 +01:00
lnu 435e362256 feat(language): add configurable extensions 2021-11-26 13:09:02 +01:00
Jan De Dobbeleer d31a24c654 chore: fix devcontainer setup 2021-11-26 12:07:41 +01:00
Yehor Borkov 9ecd7c09a4
feat(palette): a map of named color values
introducing a map of named standard color
values that can be referenced in theme segments
2021-11-22 15:25:56 +01:00
Alan Fregtman 9bba2bf909
feat(devcontainer): deploy OMP to all shells, 2021-11-20 13:45:51 +01:00
Jan De Dobbeleer 915d2796fe chore(vscode): adjust linter settings 2021-11-05 09:09:17 +01:00
lnu 4a088a5a1c chore: go tools settings updated
golanci-lint update to analyze package
organize import on save
2021-11-03 11:07:36 +02:00
Alan Fregtman df52ccdb6a
fix(vscode): remove deprecated extensions 2021-10-31 18:21:40 +01:00
lnu e6cb3a5608 chore: devcontainer cleaning
not needed forwarded port removed
powershell extensions added to recommended list
golang.go instead of golang.go-nightly
2021-10-18 18:11:35 +02:00