Commit graph

247 commits

Author SHA1 Message Date
Jan De Dobbeleer 35c2588365 chore: fix function typo 2023-09-19 19:35:23 +02:00
Jan De Dobbeleer b887d13ccd fix(nu): use native right prompt command
resolves #4237

this also avoids renderibng the right prompt twice when the shell
script uses the `oh-my-posh print right` command
2023-09-15 08:41:10 +02:00
Ernesto R. C. Pereda 43aca8e9ea
feat(helm): add segment 2023-09-04 21:00:04 +02:00
Jan De Dobbeleer 669521c8f7 fix(engine): do not print sequential newlines on no content
relates to #4182
2023-09-03 09:03:14 +02:00
Jan De Dobbeleer a9e2ba61fa fix(windows): escape PWD in emulated shells
relates to #4208
2023-08-31 11:01:23 +02:00
Jan De Dobbeleer 7cf63eead5 fix(engine): do not print empty block 2023-08-30 12:56:07 +02:00
Jan De Dobbeleer 0f8929ed13 feat(debug): print templates 2023-08-25 12:09:54 +02:00
Jan De Dobbeleer aa51cd65d0 fix(pwsh): patch PowerShell color bleed
relates to #65
2023-08-09 08:28:35 +02:00
Jan De Dobbeleer 0afa0880a9 fix(pwsh): remove hack that solves a pwsh bug
relates to #65
2023-08-06 20:56:44 +02:00
Jan De Dobbeleer f9f309d1f4 fix(plain): do not print title 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 9a6fbb6f52 fix(rprompt): print when plain 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 4bab59fbd8 feat(debug): use actual prompt logic 2023-08-06 15:52:26 +02:00
Jan De Dobbeleer 744b1f042c fix(prompt): only pad on positive count 2023-08-06 10:10:58 +02:00
Jan De Dobbeleer f55da0ebcb fix(tooltip): position with spaces instead of ANSI 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer c23069b185 fix(prompt): print right block using spaces 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer 181b789186 fix(rprompt): position using spaces instead of ANSI 2023-08-05 17:53:58 +02:00
Jan De Dobbeleer 3a580ff122 feat(config): parse jsonc config files
resolves #4097
2023-07-27 13:26:04 +02:00
Jan De Dobbeleer 0af3029cf1 fix(cursor): allow disabling cursor positioning
resolves #4072
2023-07-24 19:20:41 +02:00
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 aacef4b186 feat: add quasar segment 2023-07-21 14:45:31 +02:00
Jan De Dobbeleer bce149b82f fix(azure): correct Azure icon
resolves #4056
2023-07-14 07:28:12 +02:00
Jan De Dobbeleer edf93c3883 feat(http): use proxy from environment for HTTP calls
resolves #3897
2023-05-25 19:37:04 +02:00
Jan De Dobbeleer 1c7773c2ce chore(debug): show info on default config 2023-05-22 18:57:19 +02:00
Bas Lijten c5193c9880 feat: new Sitecore context segment 2023-05-18 21:41:05 +02:00
Jan De Dobbeleer f938794ccd feat: upgrade segment 2023-05-18 19:55:29 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
Jan De Dobbeleer c62a272e72 chore(tests): do not fail test on no connection
resolves #3860
2023-05-17 20:11:03 +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 eff8af399f fix(config): remove broken GitHub icon override
resolves #3856
2023-05-17 09:26:02 +02:00
Jan De Dobbeleer 865374a0f5 fix(image): add background reset sequence 2023-05-09 11:44:11 +02:00
Jan De Dobbeleer c57975985f fix(font): migrate away from material icons
resolves #3818
2023-05-09 11:32:04 +02:00
Jan De Dobbeleer 0f7c10328f feat(image): cache font instead of embedding 2023-05-08 20:43:54 +02:00
Jan De Dobbeleer b51d1de205
fix(cache): only store template cache on primary and transient 2023-05-08 13:35:06 +02:00
Jan De Dobbeleer 9663a29fe6
feat(font): update to Nerd Font V3
BREAKING CHANGE: this deprecates support for Nerd Font V2 and
requires a compatible V3 Nerd Font. Note for users experiencing
issues with icons, update to the latest Nerd Font of your choice
2023-05-08 13:33:59 +02:00
Jan De Dobbeleer a1b95a0274 refactor: split engine logic 2023-04-22 21:41:06 +02:00
L. Yeung 6c181c1120 refactor(pwsh): move tooltip erasure logic to engine 2023-04-22 17:46:41 +02:00
Jan De Dobbeleer cdc560c7bd feat(transient): add Filler 2023-04-15 18:01:25 +02:00
Jason Zhang ddec1197df feat(argocd): add context segment 2023-04-07 10:00:49 +02:00
Jan De Dobbeleer 5bf3d613ae feat(log): add segment info 2023-04-05 21:06:44 +02:00
Jan De Dobbeleer 1f59e3d420 feat(properties): log properties information 2023-04-05 21:06:44 +02:00
Jan De Dobbeleer 972ebd4805 fix(debug): output shell and version 2023-03-26 17:33:03 +02:00
Jan De Dobbeleer 27c8f65cd5 fix(pwsh): clear line after extra prompts
resolves #3628
2023-03-24 21:24:47 +01:00
Jan De Dobbeleer 4ff3bdf359 feat(diamond): merge segments on empty leading_diamond
resolves #3623
2023-03-24 21:07:38 +01:00
Jan De Dobbeleer 8c5c836f22 feat: enable/disable true color per terminal 2023-03-23 10:36:23 +01:00
Jan De Dobbeleer 0692873cd4 feat(debug): add plain support
resolves #3612
2023-03-22 09:19:32 +01:00
Jan De Dobbeleer 3b1823682d chore(go): update dependency 2023-03-20 12:45:14 +01:00
Jan De Dobbeleer 5ec65ab373 feat: add docker segment
resolves #3549
2023-03-05 14:45:28 +01:00
Colt 1ceba7d603
feat: add Unity segment 2023-02-26 14:37:37 +00:00
Jan De Dobbeleer ea29c99130 feat: add global variables 2023-02-20 14:18:38 +01:00
Jan De Dobbeleer 90b8178b91 feat(shell): support xonsh 2023-02-18 16:52:13 +01:00