Commit graph

125 commits

Author SHA1 Message Date
EDIflyer 1d72a19694 fix(image): export with correct file name 2024-07-11 20:51:51 +02:00
Jan De Dobbeleer b103581ed6 refactor(prompt): explicitly enable cursor positioning 2024-07-08 16:53:01 +02:00
Jan De Dobbeleer 4c3110f3e5 fix(upgrade): stop spinner correctly 2024-07-06 15:12:25 +02:00
Jan De Dobbeleer 37b8e55131 fix(upgrade): stop progress before exit
resolves #5213
2024-07-06 10:33:36 +02:00
Jan De Dobbeleer ae35995c0d fix(upgrade): enable auto-upgrade on init
resolves #5206
2024-07-04 23:13:34 +02:00
Jan De Dobbeleer b6729ff414 feat(install): validate file signature before installation 2024-07-04 20:02:37 +02:00
Jan De Dobbeleer 822e2b5b48 refactor: merge net and http under runtime module 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 05251e1ac3 refactor(platform): rename to runtime 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer ad10da8cc9 refactor: move image to module 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer ee9bdf4761 refactor: move color to module 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 0a4a589125 refactor: rename engine to prompt 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 3c6abf6163 refactor(config): extract to module 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 1855a786dc feat(font): remove install as user requirement on Windows 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer e0e26f1400 feat(font): add terminal progress indication 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer be8954867f feat(upgrade): add terminal progress indication 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer dbc0a370b2 refactor(terminal): make truecolor logic internal 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 0c8b8021b8 refactor: migrate terminal to module 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 8e2c8eb6b1 refactor(writer): restructure terminal writer 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 55c7cf2383 refactor: rename ansi to terminal 2024-07-04 11:05:24 +02:00
Jan De Dobbeleer 3537f3fd49 fix(upgrade): enable for all platforms
resolves #5184
2024-06-29 20:04:48 +02:00
Jan De Dobbeleer b809944f5c fix(upgrade): disable upgrade feedback when notice is disabled
resolves #5124
2024-06-20 12:27:25 +02:00
Jan De Dobbeleer 129c41ba34 feat(upgrade): auto upgrade 2024-06-14 17:58:48 +02:00
Jan De Dobbeleer fdf0de08c4 fix(linux): remove support for upgrade
resolves #4992 as we are not able to support the upgrade command
on linux as updating oh-my-posh from within itself is impossible
to due a lock on the executable, unlike on darwin

Windows is able to update the executable after we start the installer
in the background and exit the current process
2024-06-04 20:55:21 +02:00
Jan De Dobbeleer a0d2289aec feat(cli): add upgrade command 2024-06-01 16:59:48 +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 adf97352d0 feat(notice): disable from configuration
resolves #4902
2024-05-06 20:52:45 +02:00
Jan De Dobbeleer e5156a8d44 chore(lint): remove init check 2024-05-04 08:07:47 +02:00
Jan De Dobbeleer a8f97f5aa2 docs(export): remove deprecated flags 2024-03-14 14:51:36 +01:00
Jan De Dobbeleer fb16d7c417 fix(export): fail on invalid config option 2024-03-11 13:20:49 +01:00
Jan De Dobbeleer 67042ffa50 fix(cli): use correct exit codes 2024-03-11 13:20:49 +01:00
Jan De Dobbeleer 5b7b4afec9 fix(export): format overrules file extension 2024-03-11 13:20:49 +01:00
Jan De Dobbeleer 9e7237a89f fix(themes): adjust themes for correct rendering 2024-02-15 20:27:20 +01:00
Jan De Dobbeleer fece104e73 fix(image): use fixed image width 2024-02-15 20:27:20 +01:00
Jan De Dobbeleer 43e9246c6b fix(cli): initialize .Var correctly 2024-02-14 21:53:38 +01:00
dependabot[bot] 87555288eb chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 3.7.1
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](3a91952989...3cfe3a4abb)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-10 12:12:24 +00:00
L. Yeung 8db1365ea6 fix(cli): list all supported shells in usage text for init 2023-08-06 07:29:04 +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
Jan De Dobbeleer d005bae4f4 feat: add version -v
resolves #4014
2023-07-02 21:11:01 +02:00
Jan De Dobbeleer eee5198664 feat(fonts): install as user 2023-06-12 20:26:13 +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 0f7c10328f feat(image): cache font instead of embedding 2023-05-08 20:43:54 +02:00
Jan De Dobbeleer 289ca41709 fix(millis): do not create env 2023-05-04 10:51:32 +02:00
Jan De Dobbeleer a1b95a0274 refactor: split engine logic 2023-04-22 21:41:06 +02: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 c901575413 fix(pwsh): print upgrade notice in UTF8
resolves #3606
2023-03-21 12:50:56 +01:00
Jan De Dobbeleer 3b1823682d chore(go): update dependency 2023-03-20 12:45:14 +01:00