Commit graph

181 commits

Author SHA1 Message Date
L. Yeung 7f418d7c2d fix(shell): prioritize $? for consistent status in Bash/Zsh 2024-06-20 12:54:03 +02:00
Nibodhika 8eb8d88a20 feat(nushell): enable set_poshcontext
resolves #5095
2024-06-18 08:46:48 +02:00
Jan De Dobbeleer f817acf963 refactor(bash): use default value for COLUMNS
relates to #5102
2024-06-17 15:59:29 +02:00
Jan De Dobbeleer dc2915c72c fix(bash): only use COLUMNS when it's present
relates to #5090
2024-06-17 07:58:58 +02:00
Jan De Dobbeleer 4ed8104d2d fix(bash): get terminal width from COLUMNS
resolves #5090
2024-06-15 17:41:59 +02:00
Jan De Dobbeleer 129c41ba34 feat(upgrade): auto upgrade 2024-06-14 17:58:48 +02:00
Jan De Dobbeleer a0d2289aec feat(cli): add upgrade command 2024-06-01 16:59:48 +02:00
Jan De Dobbeleer 45d6f5d412 fix(cmd): initialize cache correctly
resolves #4959
2024-05-26 17:45:51 +02:00
Jan De Dobbeleer eebb45ef07 fix(iterm): initialize prompt mark correctly for all supported shells 2024-05-20 20:05:16 +02:00
Jan De Dobbeleer 391ceaf5f0 feat(zsh): remove rprompt space natively 2024-05-19 09:19:58 +02:00
Jan De Dobbeleer 1c8347287a fix(nu): support starting with --no-history
resolves #4887
2024-05-04 08:07:47 +02:00
Grzegorz Krasoń 134f7013cf
feat(nu): validate existence of history.txt 2024-03-05 12:36:31 +01:00
Jan De Dobbeleer f078d13cca fix(bash): override pipestatus when BP_PIPESTATUS is greater or equal 2024-01-10 08:07:39 +01:00
Jan De Dobbeleer 1f5d3ea90a fix(pwsh): wrap keyhandlers in try/finally 2023-11-01 12:41:23 +01:00
Jan De Dobbeleer e5547a8c85 fix(pwsh): use correct path variable
resolves #4385
2023-10-28 10:16:58 +02:00
Jan De Dobbeleer 1bde6f929b feat(nu): transient prompt 2023-10-18 11:19:14 +02:00
Jan De Dobbeleer 205cfe3847 fix(pwsh): validate theme path existence
resolves #4359
2023-10-18 10:40:10 +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
Jan De Dobbeleer 0f8929ed13 feat(debug): print templates 2023-08-25 12:09:54 +02:00
Jan De Dobbeleer c78aa60455 fix(pwsh): force initialization of NoExitCode
resolves #4128
2023-08-05 17:53: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 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
JT bb7584e404 chore: update nushell support for env updates 2023-06-30 20:43:44 +02:00
Jan De Dobbeleer f8e72d0c05 fix(pwsh): use correct ESC char for FTCS mark 2023-05-31 08:39:14 +02:00
krzysdz 6544815766
feat: shell integration using FinalTerm's OSC sequences 2023-05-17 21:27:21 +00:00
L. Yeung 17da877767 fix(pwsh): do not render a transient prompt when text is selected 2023-04-23 07:44:46 +02:00
Jan De Dobbeleer a5274b7ee0 fix(xonsh): use string literal for config path 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 b2e1b041e3 fix: do not quote config for elvish and xonsh
resolves #3740 #3739
2023-04-22 08:59:04 +02:00
L. Yeung 8d8d06d4c8 fix(pwsh): erase a previous tooltip before a new one is rendered 2023-04-22 08:07:49 +02:00
Jan De Dobbeleer 2417960c22 fix(xonsh): do not use cat to capture string output
resolves #3739
2023-04-21 22:15:58 +02:00
L. Yeung 14f012308e fix(tooltip): check only the first word of command line 2023-04-21 20:49:03 +02:00
L. Yeung 7368c6541e fix(pwsh): remove cached tip command when rendering a new prompt 2023-04-21 20:49:03 +02:00
L. Yeung 1474979804 fix(cmd): do not cache an empty tooltip 2023-04-21 20:49:03 +02:00
L. Yeung 770d1994bc fix(fish): do not prevent entering space characters on empty buffer 2023-04-21 20:49:03 +02:00
Jan De Dobbeleer d5b0886aea fix(fish): get last element from history
resolves #3632
2023-04-20 07:18:07 +02:00
kema-dev 94fa70675a fix(tooltips): improve behaviour when using zsh-autosuggestions 2023-04-14 20:33:17 +02:00
Marc Espín 7e04bdc9f7
fix(nushell): update syntax to for v0.78.0 2023-04-05 13:43:26 +02:00
Jan De Dobbeleer 16c0ba55bc feat(xonsh): add version 2023-03-30 12:33:29 +02:00
Jan De Dobbeleer 972ebd4805 fix(debug): output shell and version 2023-03-26 17:33:03 +02:00
Jan De Dobbeleer 92c28a2e8d fix(fish): bind keys to all modes
resolves #3625
2023-03-26 14:45:37 +02:00
Jan De Dobbeleer d99f0658d7 feat(pwsh): set transient prompt on Ctrl+c 2023-03-23 10:46:11 +01:00
Jan De Dobbeleer c901575413 fix(pwsh): print upgrade notice in UTF8
resolves #3606
2023-03-21 12:50:56 +01:00
Jan De Dobbeleer 393f30a082 feat: weekly upgrade notice 2023-03-03 20:28:41 +01:00
Jan De Dobbeleer 90b8178b91 feat(shell): support xonsh 2023-02-18 16:52:13 +01:00
Jan De Dobbeleer f84e7b209f feat(shell): support elvish 2023-02-18 14:00:10 +01:00
Jan De Dobbeleer bb15f078bb feat: support tcsh
resolves #3500
2023-02-17 10:17:52 +01:00
Jan De Dobbeleer c76e9fd166 feat: ignore leading space on clear 2023-02-05 10:18:04 +01:00
Jan De Dobbeleer 441d1ff0af fix(cursor): only get when needed
resolves #3446
2023-02-04 11:37:28 +01:00